Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not detecting this Chinese text: 地图箭头方向与实际情况相反 #26

Open
lucasrmendonca opened this issue Feb 22, 2024 · 2 comments

Comments

@lucasrmendonca
Copy link

Using tinyld version 1.3.4

Steps to reproduce:

import { detect } from 'tinyld';

const detectedLanguage = detect("地图箭头方向与实际情况相反");
console.log(detectedLanguage)

Output

''

Expected output:

zh
@thewilkybarkid
Copy link
Contributor

Looking at the Playground (https://komodojp.github.io/tinyld/), only the heavy version recognises it.

@lucasrmendonca
Copy link
Author

Correct me if I'm wrong here, but shouldn't the presence of Asian unicode characters in the string be enough for tinyld to at least guess it must be one of the asian languages?

I'm not sure how it works under the hood, but it feels strange that it requires the heavy version for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants