Class: Decidim::Ai::Language::Formatter
- Inherits:
-
Object
- Object
- Decidim::Ai::Language::Formatter
- Includes:
- ActionView::Helpers::SanitizeHelper
- Defined in:
- lib/decidim/ai/language/formatter.rb
Instance Method Summary collapse
-
#cleanup(text) ⇒ Object
for the moment, we just use strip_tags to clean-up the text.
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) (text) end |