language library

Classes

Deinflection
Represents a term that has been deinflected and the its rules and reasons for having become so.
Deinflector
Ported from Javascript to Dart by Mathew Chan https://github.com/FooSoft/yomichan/blob/89ac85afd03e62818624b507c91569edbec54f3d/ext/js/language/deinflector.js
DeinflectRule
Rules for word deinflection. Ported to Dart by Matthew Chan from Yomichan.
EnglishLanguage
Language implementation of the English language.
FuriganaDistributionGroup
A class utilized in the process of distributing furigana.
JapaneseLanguage
Language implementation of the Japanese language.
Language
Defines common characteristics required for tuning locale and text segmentation behaviour for different languages. Override the variables and functions of this abstract class in order to implement a target language.
LanguageUtils
A class for general language utility functions. A majority of these functions are direct adaptations of Yomichan's Japanese utility functions from JavaScript to Dart.
NormalizedReason
Represents a one-to-many relationship between a reason and its variants.
Variant
Represents a possible deinflection.

Extensions

RegExpExtension
Extra methods for RegExp.
StringExtension
Extra methods for String.

Properties

deinflectRules Map<String, List<DeinflectRule>>
https://github.com/FooSoft/yomichan/blob/master/ext/data/deinflect.json
read / write

Functions

prepareSearchResultsEnglishLanguage(DictionarySearchParams params) Future<int?>
Top-level function for use in compute. See Language for details.
prepareSearchResultsJapaneseLanguage(DictionarySearchParams params) Future<int?>
Top-level function for use in compute. See Language for details. Credits to Matthew Chan for their port of the Yomichan parser to Dart. Top-level function for use in compute. See Language for details. Credits to Matthew Chan for their port of the Yomichan parser to Dart.
prepareSearchResultsStandard(DictionarySearchParams params) Future<int?>
Top-level function for use in compute. See Language for details.