Module: Linguistics::EN::Stemmer::SingletonMethods

Included in:
Linguistics::EN::Stemmer
Defined in:
lib/linguistics/en/stemmer.rb

Overview

Container for methods intended to extend the EN module as singleton methods.

Instance Method Summary collapse

Instance Method Details

#has_stemmer?Boolean

Returns true if Ruby-Stemmer was loaded okay

Returns:

  • (Boolean)


35
# File 'lib/linguistics/en/stemmer.rb', line 35

def has_stemmer? ; @has_stemmer; end

#stemmer_errorObject

If #has_stemmer? returns false, this can be called to fetch the exception which was raised when Ruby-Stemmer was loaded.



39
# File 'lib/linguistics/en/stemmer.rb', line 39

def stemmer_error ; @stemmer_error; end