CoolFace
Datasetpublic

alex73/GrammarDB

GrammarDB: Comprehensive Belarusian Grammatical Database This dataset contains a massive grammatical database of the Belarusian language, featuring approximately 4.5 million entries. It provides exhaustive information on wordforms, their paradigms, morphological features, and accents. Description GrammarDB is the primary open-source resource for the morphological analysis of the Belarusian language. It serves as the backbone for systems like LanguageTool… See the full description on the dataset page: https://huggingface.co/datasets/alex73/GrammarDB.

sourceHugging Facecc-by-sa-4.0updated 6mo agoView on Hugging Face
0likes56downloads
Dataset Card

GrammarDB: Comprehensive Belarusian Grammatical Database

This dataset contains a massive grammatical database of the Belarusian language, featuring approximately 4.5 million entries. It provides exhaustive information on wordforms, their paradigms, morphological features, and accents.

Description

GrammarDB is the primary open-source resource for the morphological analysis of the Belarusian language. It serves as the backbone for systems like LanguageTool, spellcheckers for LibreOffice and Firefox, and various NLP tools. The dataset allows users to map any wordform to its lemma (base form) and a comprehensive set of grammatical categories.

Dataset Structure

Each record in the dataset represents a specific wordform and contains the following fields:

FieldTypeDescription
pdgIdintParadigm ID (groups wordforms belonging to the same inflectional type).
variantIdcharParadigm variant identifier.
variantLemmastringThe lemma (base/canonical form) for this variant.
variantTypestring?Variant type (e.g., stylistic or regional variations).
paradigmOptionsstring?Additional paradigm parameters.
regulationTypestring?Normative status (references to specific linguistic rules or dictionaries).
meaningstring?Brief semantic clarification (used to distinguish homonyms).
themestring?Thematic category of the word.
tagstringGrammatical tags (Part of Speech, gender, case, number, tense, etc.).
slounikarray?List of source dictionaries where the word is recorded.
pravapisarray?References to specific orthography (spelling) rules.
formTypestring?Type of the specific form within the paradigm.
formOptionsstring?Form-specific parameters (e.g., stress/accent marks).
formstringThe actual wordform as it appears in text.

For a detailed explanation of the field values and the tagging system, please refer to the official documentation: bnkorpus.info/articles/grammardb.html.

Usage

You can load this dataset using the datasets library:

python
from datasets import load_dataset

dataset = load_dataset("alex73/GrammarDB")

# Example: Filter all forms for a specific lemma
word_forms = dataset['train'].filter(lambda x: x['variantLemma'] == 'беларускі')
for row in word_forms:
    print(f"{row['form']} -> {row['tag']}")