form stringlengths 2 9 | replacement stringclasses 1
value | kind stringclasses 1
value | group stringclasses 8
values | safe bool 2
classes | requires_dictionary bool 2
classes | strip bool 2
classes | priority int64 40 100 |
|---|---|---|---|---|---|---|---|
наме | prefix | 1_CORE_VERBAL_GRAMMATICAL | true | false | true | 100 | |
наби | prefix | 1_CORE_VERBAL_GRAMMATICAL | true | false | true | 100 | |
ме | prefix | 1_CORE_VERBAL_GRAMMATICAL | true | false | true | 100 | |
на | prefix | 1_CORE_VERBAL_GRAMMATICAL | true | false | true | 100 | |
би | prefix | 1_CORE_VERBAL_GRAMMATICAL | true | false | true | 100 | |
ми | prefix | 2_DIALECT_ALLOMORPHS | true | false | true | 95 | |
мӯ | prefix | 2_DIALECT_ALLOMORPHS | true | false | true | 95 | |
бар | prefix | 4_LEXICAL_VERBAL | true | false | false | 70 | |
дар | prefix | 4_LEXICAL_VERBAL | true | false | false | 70 | |
боз | prefix | 4_LEXICAL_VERBAL | true | false | false | 70 | |
во | prefix | 4_LEXICAL_VERBAL | true | false | false | 70 | |
ҳам | prefix | 4_LEXICAL_VERBAL | true | false | false | 70 | |
ҳаме | prefix | 4_LEXICAL_VERBAL | true | false | false | 70 | |
фар | prefix | 4_LEXICAL_VERBAL | true | false | false | 70 | |
фур | prefix | 4_LEXICAL_VERBAL | true | false | false | 70 | |
ниго | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
нигар | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
фаро | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
вара | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
пара | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
ба | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
бо | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
бу | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
то | prefix | 4_LEXICAL_VERBAL | false | true | false | 70 | |
бе | prefix | 5_NOMINAL_NEGATION_PRIVATIVE | true | false | true | 80 | |
но | prefix | 5_NOMINAL_NEGATION_PRIVATIVE | true | false | true | 80 | |
ғайри | prefix | 5_NOMINAL_NEGATION_PRIVATIVE | true | false | true | 80 | |
бе- | prefix | 5_NOMINAL_NEGATION_PRIVATIVE | true | false | true | 80 | |
но- | prefix | 5_NOMINAL_NEGATION_PRIVATIVE | true | false | true | 80 | |
ғайри- | prefix | 5_NOMINAL_NEGATION_PRIVATIVE | true | false | true | 80 | |
пеш | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
пас | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
боло | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
болои | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
зер | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
поён | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
поин | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
миён | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
андар | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
берун | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
дарун | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
пеши | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
таги | prefix | 6_SPATIAL_PREFIXES | true | false | false | 60 | |
му | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
мута | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
муста | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
муқаддама | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
гео | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
нано | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
анти | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
супер | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
макро | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
микро | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
абар | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
ним | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
сар | prefix | 7_INTERNATIONAL_PREFIXES | true | false | false | 50 | |
ма | prefix | 8_PROHIBITIVE | true | false | true | 85 | |
зидди | prefix | 9_DEEP_ONLY | false | true | true | 40 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Исправь таблиуц ## 📊 Dataset Statistics он не видно :
language: - tg license: apache-2.0 tags: - morphological-rules - prefixes - suffixes - tajik-language - nlp - stemming - lemmatization datasets: - tajik-morphological-rules
🇹🇯 Tajik Morphological Rules (Prefixes & Suffixes)
A complete, production-ready set of prefix and suffix rules for Tajik morphological analysis. These rules power lemmatization, stemming, and morphological segmentation.
📖 Description
This dataset provides two configuration files:
prefix_rules.json— 100+ prefix stripping rules with priorities and safety flags.suffix_rules.json— 150+ suffix stripping rules, ordered from longest chains to shortest.
Each rule is annotated with:
- form: the affix to strip
- replacement: what to replace it with (usually empty)
- safe: whether it can be applied without POS/dictionary checks
- requires_dictionary: whether a dictionary lookup is needed
- priority: processing order (higher = earlier)
- group: logical category (e.g., "CORE_VERBAL_GRAMMATICAL")
📊 Dataset Statistics
| Metric | Count |
|---|---|
| Total prefix rules | 58 |
| Safe prefix rules | 48 |
| Total suffix rules | 54 |
| Safe suffix rules | 40 |
| Total rules | 112 |
📁 Data Format
The dataset is organized as a Hugging Face DatasetDict with two configurations:
| Config | Description | Rows |
|---|---|---|
prefix_rules |
All prefix stripping rules | 58 |
suffix_rules |
All suffix stripping rules | 54 |
Each row contains:
| Field | Type | Description |
|---|---|---|
form |
string | The affix to match |
replacement |
string | Replacement string (usually empty) |
kind |
string | "prefix" or "suffix" |
group |
string | Rule group (e.g., "1_CORE_VERBAL_GRAMMATICAL") |
safe |
bool | Whether rule is safe without context |
requires_dictionary |
bool | Whether dictionary validation is needed |
strip |
bool | Whether to strip in standard lemmatization |
priority |
int | Processing order (higher = first) |
🚀 Usage
Load with 🤗 Datasets
from datasets import load_dataset
# Load prefix rules
prefixes = load_dataset("TajikNLPWorld/tajik-morphological-rules", "prefix_rules")
print(prefixes["train"][0])
# Load suffix rules
suffixes = load_dataset("TajikNLPWorld/tajik-morphological-rules", "suffix_rules")
print(suffixes["train"][0])
Use in a stemmer
def apply_rules(word, rules):
for rule in rules:
if word.startswith(rule["form"]): # for prefixes
return word[len(rule["form"]):]
return word
📜 License
Apache License 2.0
🤝 Citation
@dataset{tajik_morphological_rules,
title = {Tajik Morphological Rules (Prefixes & Suffixes)},
author = {TajikNLPWorld},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/TajikNLPWorld/tajik-morphological-rules}
}
Generated with ❤️ for the Tajik NLP community
- Downloads last month
- 46