Skip to content

Commit

Permalink
Treat character 'â' as possible indicator for French
Browse files Browse the repository at this point in the history
  • Loading branch information
pemistahl committed Dec 25, 2021
1 parent d801546 commit f5c0e51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ var charsToLanguagesMapping = map[string][]Language{
"ЁёЫыЭэ": {Belarusian, Kazakh, Mongolian, Russian},
"ЩщЪъ": {Bulgarian, Kazakh, Mongolian, Russian},
"Òò": {Catalan, Italian, Vietnamese, Yoruba},
"Ââ": {Portuguese, Romanian, Turkish, Vietnamese},
"Ææ": {Bokmal, Danish, Icelandic, Nynorsk},
"Åå": {Bokmal, Danish, Nynorsk, Swedish},

"Ýý": {Czech, Icelandic, Slovak, Turkish, Vietnamese},
"Ää": {Estonian, Finnish, German, Slovak, Swedish},
"Àà": {Catalan, French, Italian, Portuguese, Vietnamese},
"Ââ": {French, Portuguese, Romanian, Turkish, Vietnamese},

"Üü": {Azerbaijani, Catalan, Estonian, German, Hungarian, Spanish, Turkish},
"Č芚Žž": {Bosnian, Czech, Croatian, Latvian, Lithuanian, Slovak, Slovene},
Expand Down
2 changes: 1 addition & 1 deletion detector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func TestFilterLanguagesByRules(t *testing.T) {
{"direktør", []Language{Bokmal, Danish, Nynorsk}},
{"vývoj", []Language{Czech, Icelandic, Slovak, Turkish, Vietnamese}},
{"päralt", []Language{Estonian, Finnish, German, Slovak, Swedish}},
{"labâk", []Language{Portuguese, Romanian, Turkish, Vietnamese}},
{"labâk", []Language{French, Portuguese, Romanian, Turkish, Vietnamese}},
{"pràctiques", []Language{Catalan, French, Italian, Portuguese, Vietnamese}},
{"überrascht", []Language{
Azerbaijani, Catalan, Estonian, German, Hungarian, Spanish, Turkish},
Expand Down

0 comments on commit f5c0e51

Please sign in to comment.