Skip to content

Commit

Permalink
Update version and documentation again
Browse files Browse the repository at this point in the history
  • Loading branch information
pemistahl committed Oct 19, 2021
1 parent 80ccf6a commit c5577ca
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ members = ["language-models/*"]

[package]
name = "lingua"
version = "1.3.1"
version = "1.3.2"
authors = ["Peter M. Stahl <[email protected]>"]
description = """
An accurate natural language detection library, suitable for long and short text alike
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<br>

[![build](https://github.com/pemistahl/lingua-rs/actions/workflows/build.yml/badge.svg)](https://github.com/pemistahl/lingua-rs/actions/workflows/build.yml)
[![dependency status](https://deps.rs/crate/lingua/1.3.1/status.svg)](https://deps.rs/crate/lingua/1.3.1)
[![dependency status](https://deps.rs/crate/lingua/1.3.2/status.svg)](https://deps.rs/crate/lingua/1.3.2)
[![codecov](https://codecov.io/gh/pemistahl/lingua-rs/branch/main/graph/badge.svg)](https://codecov.io/gh/pemistahl/lingua-rs)
[![supported languages](https://img.shields.io/badge/supported%20languages-75-green.svg)](#supported-languages)
[![Downloads](https://img.shields.io/crates/d/lingua.svg)](https://crates.io/crates/lingua)

[![Docs.rs](https://docs.rs/lingua/badge.svg)](https://docs.rs/lingua)
[![Crates.io](https://img.shields.io/crates/v/lingua.svg)](https://crates.io/crates/lingua)
[![Lib.rs](https://img.shields.io/badge/lib.rs-v1.3.1-blue)](https://lib.rs/crates/lingua)
[![Lib.rs](https://img.shields.io/badge/lib.rs-v1.3.2-blue)](https://lib.rs/crates/lingua)
[![license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)

## <a name="table-of-contents"></a> Table of Contents
Expand Down Expand Up @@ -251,7 +251,7 @@ Add *Lingua* to your `Cargo.toml` file like so:

```toml
[dependencies]
lingua = "1.3.1"
lingua = "1.3.2"
```

By default, this will download the language model dependencies for all 75 supported languages,
Expand All @@ -261,7 +261,7 @@ separate features in your `Cargo.toml`:

```toml
[dependencies]
lingua = { version = "1.3.1", default-features = false, features = ["french", "italian", "spanish"] }
lingua = { version = "1.3.2", default-features = false, features = ["french", "italian", "spanish"] }
```

## 8. <a name="library-build"></a> How to build? <sup>[Top ▲](#table-of-contents)</sup>
Expand Down
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## Lingua 1.3.2 (released on 19 Oct 2021)

### Bug Fixes

- Another compilation error has been fixed which occurred when the
Latin language was left out as Cargo feature.

## Lingua 1.3.1 (released on 19 Oct 2021)

### Bug Fixes
Expand Down
9 changes: 8 additions & 1 deletion src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use crate::alphabet::Alphabet;
use crate::isocode::{IsoCode639_1, IsoCode639_3};
use serde::{Deserialize, Serialize};
use std::collections::HashSet;
use std::str::FromStr;
use strum::IntoEnumIterator;
use strum_macros::{EnumIter, EnumString};

Expand Down Expand Up @@ -261,7 +262,13 @@ impl Language {

pub fn all_spoken_ones() -> HashSet<Language> {
Language::iter()
.filter(|it| it != &Language::Latin)
.filter(|it| {
if cfg!(feature = "latin") {
it != &Language::from_str("Latin").unwrap()
} else {
true
}
})
.collect()
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
//!
//! ```toml
//! [dependencies]
//! lingua = "1.3.1"
//! lingua = "1.3.2"
//! ```
//!
//! By default, this will download the language model dependencies for all 75 supported languages,
Expand All @@ -120,7 +120,7 @@
//!
//! ```toml
//! [dependencies]
//! lingua = { version = "1.3.1", default-features = false, features = ["french", "italian", "spanish"] }
//! lingua = { version = "1.3.2", default-features = false, features = ["french", "italian", "spanish"] }
//! ```
//!
//! ## 7. How to use?
Expand Down

0 comments on commit c5577ca

Please sign in to comment.