whatlanggo
whatlanggo copied to clipboard
The "Options" does not work WHEN the detected script is not in (Latin,Cyrillic,Devanagari,Hebrew,Ethiopic,Arabic)
func detectLangBaseOnScript(text string, options Options, script *unicode.RangeTable) (Lang, float64)
The options are checked in function "detectLangInProfiles", but if the script is unicode.Han(e.g.), the options does not work at all! It is really confusing somtimes, the result lang is a lang that I have put it in a BLACKLIST!