module Cadmium::StringExtension

Defined in:

lib/cadmium_tokenizer/src/cadmium/tokenizer.cr
cadmium/sentiment.cr

Instance Method Summary

Instance Method Detail

def is_negative? #

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


[View source]
def is_positive? #

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


[View source]
def sentiment(inject = nil) #

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


[View source]