Skip to content

Commit 31572a7

Browse files
committed
Update version and release notes
1 parent 28760fd commit 31572a7

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![codecov](https://codecov.io/gh/pemistahl/lingua-rs/branch/main/graph/badge.svg)](https://codecov.io/gh/pemistahl/lingua-rs)
77
[![supported languages](https://img.shields.io/badge/supported%20languages-75-green.svg)](#3-which-languages-are-supported)
88
![supported Python versions](https://img.shields.io/badge/Python-%3E%3D%203.10-blue)
9-
[![pypi](https://img.shields.io/badge/PYPI-v2.1.0-blue)](https://pypi.org/project/lingua-language-detector)
9+
[![pypi](https://img.shields.io/badge/PYPI-v2.1.1-blue)](https://pypi.org/project/lingua-language-detector)
1010
[![license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
1111
</div>
1212

@@ -559,12 +559,8 @@ or unlikely to occur.
559559

560560
If you build a `LanguageDetector` from one language only it will operate in single-language mode.
561561
This means the detector will try to find out whether a given text has been written in the given language or not.
562-
If not, then `None` will be returned, otherwise the given language.
563-
564-
In single-language mode, the detector decides based on a set of unique and most common n-grams which
565-
have been collected beforehand for every supported language. It turns out that unique and most common
566-
n-grams help to improve accuracy in low accuracy mode, so they are used for that mode as well. In high
567-
accuracy mode, however, they do not make a significant difference, that's why they are left out.
562+
If not, then `None` will be returned, otherwise the given language. In single-language mode, the detector decides based on a set of unique and most common n-grams which
563+
have been collected beforehand for every supported language.
568564

569565
### 11.7 Detection of multiple languages in mixed-language texts
570566

RELEASE_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Lingua 2.1.1 (released on 27 May 2025)
2+
3+
### Bug Fixes
4+
5+
- In low accuracy mode, the language detector could produce random results for
6+
certain kinds of text. This has been fixed.
7+
18
## Lingua 2.1.0 (released on 20 Mar 2025)
29

310
### Features

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
[tool.poetry]
1717
name = "lingua-language-detector"
18-
version = "2.1.0"
18+
version = "2.1.1"
1919
description = "An accurate natural language detection library, suitable for long and short text alike"
2020
authors = ["Peter M. Stahl <pemistahl@gmail.com>"]
2121
license = "Apache-2.0"

0 commit comments

Comments
 (0)