Module: Gemmy::Patches::StringPatch::InstanceMethods::NlpSanitize
- Defined in:
- lib/gemmy/patches/string_patch.rb
Instance Method Summary collapse
-
#nlp_sanitize ⇒ Object
Removes non-alphanumerics and newline Converts numbers to english.
Instance Method Details
#nlp_sanitize ⇒ Object
Removes non-alphanumerics and newline Converts numbers to english
25 26 27 28 29 30 31 32 |
# File 'lib/gemmy/patches/string_patch.rb', line 25 def nlp_sanitize Gemmy.patch("string/i/alpha") ._alpha(self) .downcase .strip .numbers_to_english .chomp end |