danoan.perchance_tools.core.model module
- class danoan.perchance_tools.core.model.ReplaceInstructions(key: List[str], replace_pairs: List[Tuple[str]])[source]
Bases:
object
- Parameters:
key (List[str])
replace_pairs (List[Tuple[str]])
- key: List[str]
- replace_pairs: List[Tuple[str]]
- class danoan.perchance_tools.core.model.WordDict(source_data)[source]
Bases:
object
Data structure to store a language thesaurus.
It is a wrapper around a dictionary. The main function of this type is to tag dictionaries that represent the structure of WordDict.
Each key represents a category. Each category has a list of categories or a list of words. {
‘root’: {
‘A’: {
‘words’: […]
‘B’: {
}
}
}