Skip to content

Releases

2.0.0

Choose a tag to compare

@russcam russcam released this 28 Jul 12:24

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
    a DetectionResult per contiguous single-language section (#13). Each result carries
    a Range that slices the input directly: sentence[result.Range].
  • net10.0 added to the existing net8.0 and net9.0 targets (#20).

Full Changelog: 1.0.5...2.0.0

1.0.5

Choose a tag to compare

@russcam russcam released this 11 Oct 05:14
b8658f4

What's Changed

Full Changelog: 1.0.4...1.0.5

1.0.4

Choose a tag to compare

@russcam russcam released this 20 Nov 12:50

What's Changed

  • Update to net9.0 by @russcam in #2
  • Use AlternateLookup with ReadOnlySpan by @russcam in #3
  • Update UnicodeScript to 16.0.0 by @russcam in #4
  • Use FrozenDictionary for language models by @russcam in #5

Full Changelog: 1.0.3...1.0.4

1.0.3

Choose a tag to compare

@russcam russcam released this 06 Aug 03:30

What's Changed

Full Changelog: 1.0.2...1.0.3

1.0.2

Choose a tag to compare

@russcam russcam released this 24 May 01:26

Update package name in README

Full Changelog: 1.0.1...1.0.2

1.0.1

Choose a tag to compare

@russcam russcam released this 24 May 00:57

Update README links

Full Changelog: 1.0.0...1.0.1

1.0.0

Choose a tag to compare

@russcam russcam released this 24 May 00:36