Closed agarie closed 7 years ago
A symbol represents "a character that is neither a word (/^[[:alpha:]-']+$/.), an enclitic ('ll 'm 're 's 't or 've.), a number (/^#?([0-9]+)(.[0-9]+)?$/.) or a punctuation character (e.g. @#$%&*).
This is therefore expected behaviour. You can force it to be a word, if you don't want to use the auto-detection:
require 'treat'
include Treat::Core::DSL
w = word('r2')
w.stem
I tried to process some text that contained the string
r2
and noticed it is causing the following error:I'm not sure where this error is coming from. Can you shed some light on it? I can provide a patch if this isn't expected behavior (and if it is, I'd like to understand the rationale behind it).