-
Notifications
You must be signed in to change notification settings - Fork 10
imprecise hint #750
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
Comments
The library doesn't support danish letters (æ -> ae, ø -> oe and å -> aa) |
I looked at another library called leven, which seems to not have this issue: https://www.npmjs.com/package/leven So we could migrate to this one instead? |
yes, let's! |
So turns out it might actually be due to another library we use: The library does transform Æ -> AE and then that results in the problem we have now. I don't know what is best to do here, should it be to remove this but people might then struggle to type |
write our own "library" for remove accents? |
e.g. cf. Claude: ![]() Source: https://claude.ai/share/7e1f36bf-fa2c-43a7-bdeb-d07aafc5e019 |
Seems fine on a first look - we could give it a try. |
I asked DeepSeek to see what it comes up with and this was the solution:
I think this could be slightly simplified since the only character that doesn't work with normalization is the Åå. I guess because it is seen as a Áá essentially. |
Sidenote, the function:
does more than just remove quotes. It also removes "-" for example. Is this the intended behavior? For example, umbrella in Portuguese is "guarda-chuva", so removing the dash here would make it technically incorrect same with "It's" and "Its", they are different words. |
|
Literally meaning: "Guard Rain" 😆 |
This should say: you need to change one letter rather than add one. Or?
The text was updated successfully, but these errors were encountered: