skillner.word_processing.TypeIdentifier#

class skillner.word_processing.TypeIdentifier(to_lowercase: bool = True)[source]#

Class to classify a word as STANDARD or STOP_WORD.

An instance of TypeIdentifier has a function-like behavior and hence can be called directly on a word.

Parameters:
to_lowercase: bool, default=True

If True, the word is lowercased before checking it is type.

__init__(to_lowercase: bool = True) None[source]#

Methods

__init__([to_lowercase])

identify_type(word)

Identify the type of word as STANDARD or STOP_WORD.

identify_type(word: Word) str[source]#

Identify the type of word as STANDARD or STOP_WORD.