EnglishG2pEngine class final

English G2P orchestration with explicitly injected language backends.

A tokenizer/tagger and context-aware pronunciation provider are required. The package supplies PinnedEnglishLexicon for pronunciation data, but no real tokenizer, spaCy, eSpeak, or model fallback adapter.

Implemented types

Constructors

EnglishG2pEngine({required EnglishTokenizerBackend tokenizer, required EnglishPronunciationBackend pronunciation, EnglishFallbackBackend? fallback, EnglishPhonemeVersion phonemeVersion = EnglishPhonemeVersion.legacy, String unknownMarker = defaultUnknownMarker, bool preprocessInput = true})
Creates an English engine using caller-supplied backends.

Properties

fallback EnglishFallbackBackend?
Optional context-free fallback provider.
final
hashCode int
The hash code for this object.
no setterinherited
phonemeVersion EnglishPhonemeVersion
Final phoneme inventory rendering behavior.
final
preprocessInput bool
Whether convert applies Misaki inline preprocessing before tokenization.
final
pronunciation EnglishPronunciationBackend
Context-aware pronunciation or lexicon provider.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenizer EnglishTokenizerBackend
Tokenizer and part-of-speech tagger used by this engine.
final
unknownMarker String
Marker rendered for unresolved tokens.
final

Methods

convert(String text) G2pResult
Converts text into exact phoneme output and optional token details.
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