# mnmonherdene1234/mongolian-to-ipa architecture

> Architecture diagram of the GitHub repository mnmonherdene1234/mongolian-to-ipa, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mnmonherdene1234/mongolian-to-ipa
- Repository: https://github.com/mnmonherdene1234/mongolian-to-ipa

## Overview

This is a small Python library that transliterates Mongolian text into IPA. Its main workflow is a caller invoking `mongolian2ipa`, which normalizes input, dispatches characters to contextual conversion rules, and uses a fallback mapping for other supported characters; unknown characters are preserved. Converter rules use shared vowel and word-gender helpers. The README describes the library as a work in progress. The graph covers the sampled runtime modules; no separate runtime role is inferred for the papers directory.

Main entry points: [`mongolian2ipa/__init__.py`](https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/__init__.py) (Transcription API), [`mongolian2ipa/char_convertor.py`](https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/char_convertor.py) (Character rules), [`mongolian2ipa/helpers.py`](https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/helpers.py) (Rule helpers), [`mongolian2ipa/mongolian_ipa_dictionary.py`](https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/mongolian_ipa_dictionary.py) (Fallback mapping)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Library caller"))
node_api["Transcription API<br/>[__init__.py]"]
node_rules["Character rules<br/>[char_convertor.py]"]
node_helpers["Rule helpers<br/>[helpers.py]"]
node_mapping["Fallback mapping"]
node_ipa(("IPA text"))

node_caller -->|"invokes"| node_api
node_api -->|"dispatches to"| node_rules
node_rules -->|"uses"| node_helpers
node_api -->|"looks up"| node_mapping
node_api -->|"returns"| node_ipa

click node_api "https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/__init__.py"
click node_rules "https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/char_convertor.py"
click node_helpers "https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/helpers.py"
click node_mapping "https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/mongolian_ipa_dictionary.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_caller,node_ipa toneIndigo
class node_api toneMint
class node_rules,node_helpers,node_mapping toneTeal
```

## Components

### Other components

- **Library caller**
- [Transcription API](https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/__init__.py): `mongolian2ipa/__init__.py`
- [Character rules](https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/char_convertor.py): `mongolian2ipa/char_convertor.py`
- [Rule helpers](https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/helpers.py): `mongolian2ipa/helpers.py`
- [Fallback mapping](https://github.com/mnmonherdene1234/mongolian-to-ipa/blob/main/mongolian2ipa/mongolian_ipa_dictionary.py): `mongolian2ipa/mongolian_ipa_dictionary.py`
- **IPA text**

## Connections

- Library caller → Transcription API: invokes (evidence: `README.md`)
- Transcription API → Character rules: dispatches to (evidence: `mongolian2ipa/__init__.py`)
- Character rules → Rule helpers: uses (evidence: `mongolian2ipa/char_convertor.py`)
- Transcription API → Fallback mapping: looks up (evidence: `mongolian2ipa/__init__.py`)
- Transcription API → IPA text: returns (evidence: `mongolian2ipa/__init__.py`)
