matt-dray / r2eng

:speaking_head::speaker: R package: translate R to English
https://matt-dray.github.io/r2eng/
Other
17 stars 5 forks source link

Interpret tokens that aren't detected by {lintr}'s parsing #10

Open matt-dray opened 4 years ago

matt-dray commented 4 years ago

As per discussion on https://github.com/matt-dray/r2eng/pull/3#issuecomment-658405856, could be based on trigrams to detect adjacent tokens.

An example problem: !!, or 'bang-bang', is detected currently as two separate exclamation-point inputs that is interperted by r2eng() as 'not not'.

matt-dray commented 4 years ago

Maybe recognise novel infix operators.