Closed evenfrost closed 4 years ago
I'm trying to detect this text: Can you help me please? as English, but in the top 10 entries of the resulting array there is no English language at all:
Can you help me please?
[ [ 'zyb', 1 ], [ 'tur', 0.8181194234728895 ], [ 'zlm', 0.8105696636925188 ], [ 'som', 0.8016472203157172 ], [ 'mad', 0.787920384351407 ], [ 'ind', 0.7762525737817433 ], [ 'fra', 0.7762525737817433 ], [ 'nld', 0.7611530542210021 ], [ 'hms', 0.752916952642416 ], [ 'srp', 0.7501715854495539 ] ]
I'm using latest franc-min package and detecting with franc.all(text, { minLength: 5 }).
franc-min
franc.all(text, { minLength: 5 })
Hi! See https://github.com/wooorm/franc#whats-not-so-cool-about-franc and other closed issues!
I'm trying to detect this text:
Can you help me please?
as English, but in the top 10 entries of the resulting array there is no English language at all:I'm using latest
franc-min
package and detecting withfranc.all(text, { minLength: 5 })
.