whatlanggo icon indicating copy to clipboard operation
whatlanggo copied to clipboard

The "Options" does not work WHEN the detected script is not in (Latin,Cyrillic,Devanagari,Hebrew,Ethiopic,Arabic)

Open AndyLiu1997 opened this issue 10 months ago • 0 comments

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!

AndyLiu1997 avatar Jan 06 '25 12:01 AndyLiu1997