spencermountain / compromise

modest natural-language processing

Home Page:http://compromise.cool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Improvements]: Add .toLowerCase() API to various functions.

MarketingPip opened this issue · comments

Just doing some playing.... Some functions are missing proper API usage. (or have not been added)

prepositions()
conjunctions()
prepositions()

Are all currently required to be used like example:

     doc
        .match("#Determiner")
        .out("text")
        .toLowerCase()
       doc
        .prepositions()
        .out("text")
        .toLowerCase()
    doc
        .conjunctions()
        .out("text")
        .toLowerCase()

vs standard API usage...

   doc
        .adjectives()
        .toTitleCase()

As well .determiners() might be a nice to have handy & I am sure there are a few others that can be added.

hey sure! good idea.
Feel free to make a PR for them - I can help add the types and docs for them, if you'd like
cheers!