Skip to content

Commit 59c3428

Browse files
committed
Update version and release notes
1 parent 7de12dd commit 59c3428

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![codecov](https://codecov.io/gh/pemistahl/lingua-py/branch/pure-python-impl/graph/badge.svg)](https://codecov.io/gh/pemistahl/lingua-py)
77
[![supported languages](https://img.shields.io/badge/supported%20languages-75-green.svg)](#4-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-v1.4.1-blue)](https://pypi.org/project/lingua-language-detector/1.4.1/)
9+
[![pypi](https://img.shields.io/badge/PYPI-v1.4.2-blue)](https://pypi.org/project/lingua-language-detector/1.4.2/)
1010
[![license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
1111
</div>
1212

@@ -377,10 +377,10 @@ Erroneously classified as Dutch: 0.20%, Latin: 0.10%
377377

378378
## 9. How to add it to your project?
379379

380-
*Lingua* is available in the [Python Package Index](https://pypi.org/project/lingua-language-detector/1.4.1)
380+
*Lingua* is available in the [Python Package Index](https://pypi.org/project/lingua-language-detector/1.4.2)
381381
and can be installed with:
382382

383-
pip install lingua-language-detector==1.4.1
383+
pip install lingua-language-detector==1.4.2
384384

385385
## 10. How to build?
386386

@@ -541,12 +541,8 @@ or unlikely to occur.
541541

542542
If you build a `LanguageDetector` from one language only it will operate in single-language mode.
543543
This means the detector will try to find out whether a given text has been written in the given language or not.
544-
If not, then `None` will be returned, otherwise the given language.
545-
546-
In single-language mode, the detector decides based on a set of unique and most common n-grams which
547-
have been collected beforehand for every supported language. It turns out that unique and most common
548-
n-grams help to improve accuracy in low accuracy mode, so they are used for that mode as well. In high
549-
accuracy mode, however, they do not make a significant difference, that's why they are left out.
544+
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
545+
have been collected beforehand for every supported language.
550546

551547
### 11.7 Detection of multiple languages in mixed-language texts
552548

RELEASE_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## Lingua 1.4.2 (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 1.4.1 (released on 07 Mar 2025)
29

310
### Improvements

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 = "1.4.1"
18+
version = "1.4.2"
1919
description = "An accurate natural language detection library, suitable for short text and mixed-language text"
2020
authors = ["Peter M. Stahl <pemistahl@gmail.com>"]
2121
license = "Apache-2.0"

0 commit comments

Comments
 (0)