Class: Decidim::Ai::Language::Formatter

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::SanitizeHelper
Defined in:
lib/decidim/ai/language/formatter.rb

Instance Method Summary collapse

Instance Method Details

#cleanup(text) ⇒ Object

for the moment, we just use strip_tags to clean-up the text. At a later stage, we may need to introduce stemmers, ngrams or other kind of text normalization, as well any language specific criteria



11
12
13
# File 'lib/decidim/ai/language/formatter.rb', line 11

def cleanup(text)
  strip_tags(text)
end