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
19 20 21 22 23 24 25 26 |
# File 'lib/gemmy/patches/string_patch.rb', line 19 def nlp_sanitize Gemmy.patch("string/i/alpha") ._alpha(self) .downcase .strip .numbers_to_english .chomp end |