pub struct Marks {
pub part_of_speech: Vec<Vec<String>>,
pub characters: String,
}Expand description
What recognizes one kind of mark: parts of speech, and the characters its surface is made of.
A morpheme is of the kind when its part of speech starts with one of
the lists of levels, or when its surface is not empty and every
character of it is one of characters (or, with
SurfaceRule::OneCharacter, when its surface is one of them). The
surface is needed because a
dictionary does not always give a mark the part of speech of a mark:
IPADIC has no half-width symbols, so , is an unknown word and comes
out as 名詞,サ変接続.
The surface is the one of the schema, normalized when the schema has a normalization. The schemas of this crate have none: their characters hold the full-width and the half-width forms side by side.
Fields§
§part_of_speech: Vec<Vec<String>>The parts of speech of the kind: each one the first levels, from the
coarsest, as 記号, 読点.
characters: StringThe characters a surface of the kind is made of.