seancarmody / ngramr

R package to query the Google Ngram Viewer
Other
48 stars 9 forks source link

Support for part-of-speech tags; additional examples #11

Closed briatte closed 11 years ago

briatte commented 11 years ago

This update adds a way to use the part-of-speech tags documented in the Ngram syntax, as well as a few examples, including this one by Ben Zimmer:

rplot

I've also added a little security to make sure that ggram receives a vector characters for phrases (sending it a data frame will crash your R session).

It would probably be a good idea to have the Ngram syntax page cited somewhere. I can submit a revision of the README file for the package, if you are okay with it.

seancarmody commented 11 years ago

I like it. The only tweak I made was to move the tag handling to ngram_single.

seancarmody commented 11 years ago

Feel free to post revisions to README too.