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

Title-case adjective tagged as a noun #578

Open
bmestanov opened this issue Mar 29, 2019 · 1 comment
Open

Title-case adjective tagged as a noun #578

bmestanov opened this issue Mar 29, 2019 · 1 comment
Labels

Comments

@bmestanov
Copy link

Hi, I noticed a behavior I think is strange. See examples:

nlp('when quantity is higher than 16 do X').debug()
====
   'when'                     - Conjunction
   'quantity'                 - Singular, Noun
   'is'                       - Copula, Verb, VerbPhrase
   'higher'                   - Comparative, Adjective
   'than'                     - Preposition
   '16'                       - NumericValue, Value, Cardinal
   'do'                       - Infinitive, PresentTense, Verb, VerbPhrase
   'X'                        - Noun, Singular

Which is OK. But when the adjective is in title-case:

nlp('when quantity is Higher than 16 do X').debug()
===
...
'Higher'                   - TitleCase, Noun, Singular
...

What seems odd to me is that the toLowerCase transformation does not change anything.

nlp('when quantity is Higher than 16 do X').toLowerCase().debug()
===
...
'higher'                   - TitleCase, Noun, Singular
...

Thanks!

@bmestanov bmestanov changed the title Title-case adjective tagged as noun Title-case adjective tagged as a noun Mar 29, 2019
@spencermountain
Copy link
Owner

thanks Bilyal!
that looks for sure like a bug.
will check it out.

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

No branches or pull requests

2 participants