How no-plagiarism/pymorphy3 works
pymorphy3 is a Russian and Ukrainian morphological analyzer and inflection engine. The main workflow accepts a word through the Python API or CLI, uses dictionary-backed and heuristic analyzer units to produce parses, and represents grammatical tags and results for downstream use. A separate dictionary-build workflow parses and preprocesses OpenCorpora data, compiles it into pymorphy3 structures, and saves it for loading at runtime. The graph reflects README capabilities and indexed references; unsampled implementations and call details are not inferred where the evidence does not establish them.
Main entry points: units Analyzer Units · analyzer.py Morph Analyzer · compile.py Dictionary Compiler · storage.py Dictionary Storage
Components 21
User Interface
- Python API
pymorphy3/__init__.py - Command Line
pymorphy3/cli.py
Morphological Analysis
- Morph Analyzer
pymorphy3/analyzer.py - Analyzer Units
pymorphy3/units - Dictionary Lookup
pymorphy3/units/by_lookup.py - Analogy Analysis
pymorphy3/units/by_analogy.py - Hyphen Analysis
pymorphy3/units/by_hyphen.py - Word Shapes
pymorphy3/units/by_shape.py - Grammatical Tags
pymorphy3/tagset.py - Shape Rules
pymorphy3/shapes.py - Russian Config
pymorphy3/lang/ru/config.py - Ukrainian Config
pymorphy3/lang/uk/config.py - Ukrainian Prefixes
pymorphy3/lang/uk/_prefixes.py
Dictionary Data
- Dictionary Wrapper
pymorphy3/opencorpora_dict/wrapper.py - Dictionary Storage
pymorphy3/opencorpora_dict/storage.py - DAWG Indexes
pymorphy3/dawg.py
Dictionary Build
- XML Parsing
pymorphy3/opencorpora_dict/parse.py - Dictionary Preprocess
pymorphy3/opencorpora_dict/preprocess.py - Dictionary Compiler
pymorphy3/opencorpora_dict/compile.py - Probability Data
pymorphy3/opencorpora_dict/probability.py
Other components
- User
Connections 25
- User → Python API: uses
pymorphy3/__init__.py - User → Command Line: invokes
pymorphy3/cli.py - Python API → Morph Analyzer: exports
pymorphy3/__init__.py - Command Line → Morph Analyzer: uses
pymorphy3/cli.py - Morph Analyzer → Dictionary Wrapper: loads
pymorphy3/analyzer.py - Dictionary Wrapper → Dictionary Storage: loads data
pymorphy3/opencorpora_dict/wrapper.py - Dictionary Storage → DAWG Indexes: loads indexes
pymorphy3/opencorpora_dict/storage.py - Morph Analyzer → Analyzer Units: dispatches
pymorphy3/analyzer.py - Analyzer Units → Dictionary Lookup: registers
pymorphy3/units/__init__.py - Analyzer Units → Analogy Analysis: registers
pymorphy3/units/__init__.py - Analyzer Units → Hyphen Analysis: registers
pymorphy3/units/__init__.py - Analyzer Units → Word Shapes: registers
pymorphy3/units/__init__.py - Analogy Analysis → Dictionary Lookup: delegates to
pymorphy3/units/by_analogy.py - Word Shapes → Shape Rules: uses rules
pymorphy3/units/by_shape.py - Morph Analyzer → Grammatical Tags: uses tags
pymorphy3/analyzer.py - Russian Config → Analyzer Units: configures
pymorphy3/lang/ru/config.py - Ukrainian Config → Analyzer Units: configures
pymorphy3/lang/uk/config.py - Ukrainian Config → Ukrainian Prefixes: uses prefixes
pymorphy3/lang/uk/config.py - XML Parsing → Dictionary Preprocess: feeds
- Dictionary Compiler → XML Parsing: consumes parsed data
pymorphy3/opencorpora_dict/compile.py - Dictionary Compiler → Dictionary Preprocess: uses
pymorphy3/opencorpora_dict/compile.py - Dictionary Compiler → Dictionary Storage: saves compiled data
pymorphy3/opencorpora_dict/compile.py - Probability Data → Dictionary Preprocess: uses
pymorphy3/opencorpora_dict/probability.py - Probability Data → Dictionary Storage: uses
pymorphy3/opencorpora_dict/probability.py - Dictionary Compiler → DAWG Indexes: builds indexes
pymorphy3/opencorpora_dict/compile.py