module Cadmium::StringExtension
Defined in:
cadmium/inflectors.crcadmium/phonetics.cr
cadmium/sentiment.cr
cadmium/stemmer.cr
cadmium/tokenizer.cr
Instance Method Summary
-
#is_negative?
Determines if a string is more negative than positive.
-
#is_positive?
Determines if a string is more positive than negative.
- #phonetics(max_length = nil, phonetics = Cadmium::Metaphone)
- #pluralize(noun = true)
-
#sentiment(inject = nil)
Get the sentiment of a string.
- #singularize(noun = true)
- #sounds_like(word, phonetics = Cadmium::Metaphone)
- #stem(stemmer = Cadmium::PorterStemmer)
- #tokenize(tokenizer = Cadmium::WordPunctuationTokenizer, *args, **kwargs)
- #tokenize_and_phoneticize(keep_stops = false, phonetics = Cadmium::Metaphone)
- #tokenize_and_stem(stemmer = Cadmium::PorterStemmer, keep_stops = false)
Instance Method Detail
def sentiment(inject = nil)
#
Get the sentiment of a string. Same as running
Cadmium::Sentiment.analyze(STRING)
.