PinnedEnglishLexicon class final
Offline pronunciation provider for the pinned Misaki English lexicons.
const provider = PinnedEnglishLexicon();
final pronunciation = provider.lookup(
MisakiToken(
text: 'hello',
tag: 'NN',
whitespace: '',
metadata: EnglishTokenMetadata(isHead: true),
),
const EnglishTokenContext(),
);
Loading is offline and lazy per dialect. A tokenizer/tagger remains an explicit injected boundary when this provider is used with the engine.
- Implemented types
Constructors
- PinnedEnglishLexicon({EnglishDialect dialect = EnglishDialect.american})
-
Creates a provider for
dialect. Lexicon JSON remains lazy per isolate.const
Properties
- dialect → EnglishDialect
-
Selected American or British lexicon and morphology behavior.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → BackendInfo
-
Stable backend identity included in diagnostics and fixture metadata.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
lookup(
MisakiToken token, EnglishTokenContext context) → EnglishPronunciation? -
Looks up
tokenusing right-to-leftcontext.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited