You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently "Como estas" returns SPANISH while "Cómo estás" returns PORTUGUESE. Digging further I realized that Spanish was missing from the set of allowed languages for many of the Spanish accented characters:
á = ‘ + a
é = ‘ + e
í = ‘ + i
ó = ‘ + o
ú = ‘ + u
ñ = ~ + n (this one is ok)
ü = ” + u
The text was updated successfully, but these errors were encountered:
Hi @joeporter, thanks for reporting this issue. Indeed, somehow I missed to consider Spanish for these accented characters. That was probably because these accents are only used if the default stress rules cannot be applied to a Spanish word. Therefore these accents are somewhat rare in Spanish, so I forgot to add them. I will fix that.
lingua/src/main/kotlin/com/github/pemistahl/lingua/api/LanguageDetector.kt
Line 479 in 1245654
Currently "Como estas" returns SPANISH while "Cómo estás" returns PORTUGUESE. Digging further I realized that Spanish was missing from the set of allowed languages for many of the Spanish accented characters:
á = ‘ + a
é = ‘ + e
í = ‘ + i
ó = ‘ + o
ú = ‘ + u
ñ = ~ + n (this one is ok)
ü = ” + u
The text was updated successfully, but these errors were encountered: