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

Don't work for French language #78

Open
alexandrecoulay opened this issue Jul 25, 2023 · 1 comment
Open

Don't work for French language #78

alexandrecoulay opened this issue Jul 25, 2023 · 1 comment

Comments

@alexandrecoulay
Copy link

Hi,

When I want to detect French language, I have this error

Error: Failed to identify language

For this code

import cld from "cld";

async function testCld() {
    const result = await cld.detect("J'aime me beurrer la biscote");
    console.log(result);
}

testCld()
@vxern
Copy link

vxern commented Sep 5, 2023

I noticed cld fails to make any detection on text below +-50 characters. Give it a longer text, and it will detect the language correctly.

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