class NHKore::BasicCleaner

@author Jonathan Bradley Whited @since 0.2.0

Public Instance Methods

end_clean(str) click to toggle source
# File lib/nhkore/cleaner.rb, line 61
def end_clean(str)
  # This is very simple, as Splitter will split on punctuation,
  #   and Polisher will remove the leftover punctuation, digits, etc.
  # If this is stricter, then errors will be raised in ArticleScraper's
  #   scrape_dicwin_word() & scrape_ruby_word().

  str = Util.unspace_web_str(str) # Who needs space in Japanese?

  return str
end