Package cjklib :: Package reading :: Module operator :: Class HiraganaOperator
[hide private]
[frames] | no frames]

Class HiraganaOperator

source code


Provides an operator on Japanese text written in Hiragana.

Instance Methods [hide private]
bool
isReadingEntity(self, entity)
Returns true if the given entity is recognised by the reading operator, i.e.
source code

Inherited from SimpleEntityOperator: compose, decompose

Inherited from ReadingOperator: __init__, getOption

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods [hide private]

Inherited from ReadingOperator: getDefaultOptions

Class Variables [hide private]
  READING_NAME = 'Hiragana'
Unique name of reading
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

isReadingEntity(self, entity)

source code 

Returns true if the given entity is recognised by the reading operator, i.e. it is a valid entity of the reading returned by decompose().

The default implementation will raise a NotImplementedError.

Parameters:
  • entity - entity to check
Returns: bool
true if string is an entity of the reading, false otherwise.
Overrides: ReadingOperator.isReadingEntity
(inherited documentation)