seancarmody / ngramr

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

Deal with parentheses #19

Closed seancarmody closed 4 years ago

seancarmody commented 10 years ago

In the new google website, a string like this (The United States is + The United States has) / The United States is replaced with ((The United States is + The United States has) / The United States)

However, the former will result in an error in ngramr. This condition needs to be trapped and the outer parentheses added.