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
Britishize asymmetry with Americanize #61
Comments
Also, it when converting from British to American, it will make "are" to "aer" using the logic that "metre" becomes "meter" |
haha! thanks Abhinav. It is way stronger going one way than the other. I'll take a look at improving this, and that bug, this week. |
Shot in the dark: maybe try |
with the new api (released this week), it's mostly the same call var nlp=require("nlp_compromise")
t=nlp.term("favorite")
console.log(t.britishize()) although the asymmetry between britishize and americanize remains. it just needs some work. |
@spencermountain Here's a demo with a few terms not working as hoped:
https://tonicdev.com/569fd5d4a6f5cc0d0018195d/569fd5d4ff73f00e00779a00 |
ah, rats. k thanks. |
@spencermountain xxxxxxxx-ize seems to be the norm for a lot of functions in "inflection" libs (dasherize, humanize, camelize, parameterize). FWIW Americanization is a thing which is a nice touch. |
;) copy that. |
locale was removed from this repo a couple months ago, so will close this ticket. |
On version 1.1.3
If you try typing in something like
It just returns whatever the input is.
The americanize function works perfectly fine, though.
The text was updated successfully, but these errors were encountered: