The MIA-Padezh project for .NET provides a deterministic library for declining Russian full names. It replaces older solutions based on the 2015 Petrovich rules, which contained unresolved bugs and lacked accuracy metrics. The new library achieves 99.88% accuracy for surnames, 99.70% for first names, and 100% for patronymics based on a corpus of 249,000 word forms.

The library architecture eliminates runtime JSON parsing by generating C# rule tables during the build process. This approach ensures zero allocations, compatibility with Native AOT, and no external dependencies. The core functionality includes support for six grammatical cases, plural forms, vocative cases, and gender detection via a dictionary of 1,765 names.

A small ONNX-based neural network serves as a fallback for non-standard inputs, such as non-Cyrillic surnames. The model uses a char-level GRU architecture with approximately 0.5 million parameters. It is only triggered if the deterministic rules fail to find a match, ensuring that the library remains reliable for standard Russian names.

The project development relied on a corpus-first approach, using the petrovich-eval tool to identify and fix errors by suffix patterns. The developer documented unresolved linguistic conflicts, such as gender-dependent declension rules for specific surnames, to maintain data integrity. The library is open-source and available via NuGet.