Skip to content

Commit 47d5287

Browse files
committed
Update release notes for 1.2.2
1 parent ce2fdc1 commit 47d5287

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,10 +2163,10 @@ The detailed statistics table that contains all accuracy values can be written w
21632163

21642164
```
21652165
// Groovy syntax
2166-
implementation 'com.github.pemistahl:lingua:1.2.1'
2166+
implementation 'com.github.pemistahl:lingua:1.2.2'
21672167
21682168
// Kotlin syntax
2169-
implementation("com.github.pemistahl:lingua:1.2.1")
2169+
implementation("com.github.pemistahl:lingua:1.2.2")
21702170
```
21712171

21722172
### 7.2 Using Maven
@@ -2175,7 +2175,7 @@ implementation("com.github.pemistahl:lingua:1.2.1")
21752175
<dependency>
21762176
<groupId>com.github.pemistahl</groupId>
21772177
<artifactId>lingua</artifactId>
2178-
<version>1.2.1</version>
2178+
<version>1.2.2</version>
21792179
</dependency>
21802180
```
21812181

@@ -2189,9 +2189,9 @@ cd lingua
21892189
./gradlew build
21902190
```
21912191
Several jar archives can be created from the project.
2192-
1. `./gradlew jar` assembles `lingua-1.2.1.jar` containing the compiled sources only.
2193-
2. `./gradlew sourcesJar` assembles `lingua-1.2.1-sources.jar` containing the plain source code.
2194-
3. `./gradlew jarWithDependencies` assembles `lingua-1.2.1-with-dependencies.jar` containing the
2192+
1. `./gradlew jar` assembles `lingua-1.2.2.jar` containing the compiled sources only.
2193+
2. `./gradlew sourcesJar` assembles `lingua-1.2.2-sources.jar` containing the plain source code.
2194+
3. `./gradlew jarWithDependencies` assembles `lingua-1.2.2-with-dependencies.jar` containing the
21952195
compiled sources and all external dependencies needed at runtime. This jar file can be included
21962196
in projects without dependency management systems. It can also be used to
21972197
run *Lingua* in standalone mode (see below).
@@ -2367,7 +2367,7 @@ from memory but the thread pool will keep running.
23672367
If you want to try out *Lingua* before you decide whether to use it or not, you can run it in a REPL
23682368
and immediately see its detection results.
23692369
1. With Gradle: `./gradlew runLinguaOnConsole --console=plain`
2370-
2. Without Gradle: `java -jar lingua-1.2.1-with-dependencies.jar`
2370+
2. Without Gradle: `java -jar lingua-1.2.2-with-dependencies.jar`
23712371

23722372
Then just play around:
23732373

@@ -2459,7 +2459,7 @@ introduced with Java 8.
24592459
11. Fix the existing unit tests by adding your new language.
24602460
12. Add your new language to property [`linguaSupportedLanguages`][gradle properties url]
24612461
in `/gradle.properties`.
2462-
13. Run `./gradlew writeAccuracyReports` and add the updated accuracy reports to your pull request.
2462+
13. Run `./gradlew accuracyReport` and add the updated accuracy reports to your pull request.
24632463
14. Run `./gradlew drawAccuracyPlots` and add the updated plots to your pull request.
24642464
15. Run `./gradlew writeAccuracyTable` and add the updated accuracy table to your pull request.
24652465
16. Be happy! :-) You have successfully contributed a new language and have thereby significantly widened
@@ -2476,8 +2476,8 @@ Take a look at the [planned issues](https://github.com/pemistahl/lingua/mileston
24762476
[codecov badge]: https://codecov.io/gh/pemistahl/lingua/branch/main/graph/badge.svg
24772477
[codecov url]: https://codecov.io/gh/pemistahl/lingua
24782478
[supported languages badge]: https://img.shields.io/badge/supported%20languages-75-green.svg
2479-
[lingua version badge]: https://img.shields.io/badge/Download%20Jar-1.2.1-blue.svg
2480-
[lingua download url]: https://github.com/pemistahl/lingua/releases/download/v1.2.1/lingua-1.2.1-with-dependencies.jar
2479+
[lingua version badge]: https://img.shields.io/badge/Download%20Jar-1.2.2-blue.svg
2480+
[lingua download url]: https://github.com/pemistahl/lingua/releases/download/v1.2.2/lingua-1.2.2-with-dependencies.jar
24812481
[Kotlin platforms badge]: https://img.shields.io/badge/platforms-JDK%206%2B-blue.svg
24822482
[Kotlin platforms url]: https://kotlinlang.org/docs/reference/server-overview.html
24832483
[license badge]: https://img.shields.io/badge/license-Apache%202.0-blue.svg
@@ -2487,8 +2487,8 @@ Take a look at the [planned issues](https://github.com/pemistahl/lingua/mileston
24872487
[Apache OpenNLP]: https://opennlp.apache.org/docs/1.9.3/manual/opennlp.html#tools.langdetect
24882488
[Optimaize Language Detector]: https://github.com/optimaize/language-detector
24892489
[GitHub Packages]: https://github.com/pemistahl/lingua/packages/766181
2490-
[Maven Central]: https://search.maven.org/artifact/com.github.pemistahl/lingua/1.2.1/jar
2491-
[Maven Central badge]: https://img.shields.io/badge/Maven%20Central-1.2.1-green.svg
2490+
[Maven Central]: https://search.maven.org/artifact/com.github.pemistahl/lingua/1.2.2/jar
2491+
[Maven Central badge]: https://img.shields.io/badge/Maven%20Central-1.2.2-green.svg
24922492
[ACCURACY_PLOTS.md]: https://github.com/pemistahl/lingua/blob/main/ACCURACY_PLOTS.md
24932493
[ACCURACY_TABLE.md]: https://github.com/pemistahl/lingua/blob/main/ACCURACY_TABLE.md
24942494
[accuracy reports url]: https://github.com/pemistahl/lingua/tree/main/accuracy-reports

RELEASE_NOTES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## Lingua 1.2.2 (released on 02 Aug 2022)
2+
3+
### Bug Fixes
4+
5+
- Due to a bug in the Moshi JSON serialization library, language detection
6+
was not possible in certain cases. (#144, #147)
7+
- Lingua could not be used properly when a security manager was enabled
8+
in the JVM. (#141)
9+
110
## Lingua 1.2.1 (released on 09 Jun 2022)
211

312
### Bug Fixes

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ linguaGroupId=com.github.pemistahl
2929

3030
linguaArtifactId=lingua
3131

32-
linguaVersion=1.2.1
32+
linguaVersion=1.2.2
3333

3434
linguaName=Lingua
3535

src/test/kotlin/com/github/pemistahl/lingua/api/LanguageDetectorTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ import com.github.pemistahl.lingua.internal.Ngram
8181
import com.github.pemistahl.lingua.internal.TestDataLanguageModel
8282
import io.mockk.every
8383
import io.mockk.impl.annotations.MockK
84-
import io.mockk.impl.annotations.SpyK
8584
import io.mockk.junit5.MockKExtension
8685
import it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap
8786
import org.assertj.core.api.Assertions.assertThat
@@ -229,7 +228,6 @@ class LanguageDetectorTest {
229228
@MockK
230229
private lateinit var quadrigramTestDataLanguageModel: TestDataLanguageModel
231230

232-
@SpyK
233231
private var detectorForEnglishAndGerman = LanguageDetector(
234232
languages = mutableSetOf(ENGLISH, GERMAN),
235233
minimumRelativeDistance = 0.0,

0 commit comments

Comments
 (0)