module Gemmy::Patches::StringPatch::InstanceMethods::NlpSanitize

Public Instance Methods

nlp_sanitize() click to toggle source

Removes non-alphanumerics and newline Converts numbers to english

# 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