Repository navigation
Releases
2.0.0
What's Changed
- Update GitHub Actions to current major versions by @russcam in #18
- Add support for mixed-language detection by @russcam in #13
- Optimize tokenization and rule-based detection hot paths by @russcam in #14
- Replace regex-based input text cleanup with a single pass by @russcam in #15
- Build ngram test models from letter runs with span-based lookups by @russcam in #16
- Expose DetectionResult bounds as a Range by @russcam in #19
- Include net10.0 as target by @russcam in #20
- Use OrderedDictionary and vendor the runtime implementation for .NET 8 by @russcam in
#21 - Look up confidence values by key instead of scanning by @russcam in #22
- Return IReadOnlyDictionary from confidence value methods by @russcam in #23
Breaking Changes
ComputeLanguageConfidenceValues now returns IReadOnlyDictionary<Language, double> (#23)
It previously returned IDictionary<Language, double>. The values are a finished
computation, so the mutating half of that contract had no meaning.
This breaks source and binary compatibility. Recompiling is enough unless you
declared the result as IDictionary<Language, double>, in which case widen it to
IReadOnlyDictionary<Language, double> or use var. Enumeration, Count, the
indexer and ordering by descending confidence are all unchanged.
ӨөҮү no longer identifies Mongolian on its own (#13)
These characters are standard Kazakh letters too, so they are now treated as
candidates for both Kazakh and Mongolian rather than as unique to Mongolian, matching
lingua-rs. Cyrillic text containing them may now be detected as Kazakh where 1.0.5
returned Mongolian.
New
- Mixed-language detection via
LanguageDetector.DetectMultipleLanguagesOf, returning
aDetectionResultper contiguous single-language section (#13). Each result carries
aRangethat slices the input directly:sentence[result.Range]. net10.0added to the existingnet8.0andnet9.0targets (#20).
Full Changelog: 1.0.5...2.0.0
1.0.5
1.0.4
1.0.3
1.0.2
Update package name in README
Full Changelog: 1.0.1...1.0.2
1.0.1
Update README links
Full Changelog: 1.0.0...1.0.1
1.0.0
Initial release
Full Changelog: https://github.com/searchpioneer/lingua-dotnet/commits/1.0.0