module

Cadmium::StringExtension

Instance methods

is_negative?

Determines if a string is more negative than positive. Returns Bool.

Source
is_positive?

Determines if a string is more positive than negative. Returns Bool.

Source
phonetics(max_length = nil, phonetics = Cadmium::Metaphone)
Source
pluralize(noun = true)
Source
sentiment(inject = nil)

Get the sentiment of a string. Same as running Cadmium::Sentiment.analyze(STRING).

Source
singularize(noun = true)
Source
sounds_like(word, phonetics = Cadmium::Metaphone)
Source
tokenize(tokenizer = Cadmium::WordPunctuationTokenizer, *args, **kwargs)
Source
tokenize_and_phoneticize(keep_stops = false, phonetics = Cadmium::Metaphone)
Source
tokenize_and_stem(stemmer = Cadmium::PorterStemmer, keep_stops = false)
Source