greyblake / whatlang-rs

Natural language detection library for Rust. Try demo online: https://whatlang.org/
https://whatlang.org/
MIT License
969 stars 109 forks source link

Fix regression bug: language should not appear in result when it's in FilterList::Except #78

Closed greyblake closed 3 years ago

greyblake commented 3 years ago

See unit test test_detect_with_options_with_filter_list_except_none in src/core/detect.rs

Ensure that it works as expected for all scripts (including Cyrillic and Latin). Make sure that alphabet method respects FilterList.