NepaliKit
NepaliKit is a Python library for natural language processing tasks in the Nepali language.
Installation
pip install nepalikit
Quick Start
from nepalikit.tokenization import Tokenizer
from nepalikit.preprocessing import TextProcessor
from nepalikit.manage_stopwords import get_stopwords, remove_stopwords_from_text
# Tokenize text
tokenizer = Tokenizer()
tokens = tokenizer.tokenize("नमस्ते, के छ खबर? यो एउटा वाक्य हो।", level='word')
# Clean text
processor = TextProcessor()
clean = processor.remove_html_tags("<p>नमस्ते</p>")
clean = processor.remove_special_characters(clean)
# Remove stopwords
filtered = remove_stopwords_from_text("म घर जाँदै छु")
Features
- Tokenization — Rule-based and SentencePiece tokenizers
- Preprocessing — HTML removal, special character cleaning, whitespace normalization
- Stopword Management — 340+ curated Nepali stopwords with dynamic add/remove
- Stemming — Rule-based suffix stripping
- Normalization — Unicode NFC normalization, ZWNJ/ZWJ stripping, script detection
- POS Tagging — Dictionary-based tagger with 11 grammatical categories
- Spell Checking — Dictionary-based with Levenshtein edit distance suggestions
- Transliteration — Roman ↔ Devanagari + Preeti font conversion
- Number Extraction — Parse Devanagari digits and Nepali number words to integers
- Sentence Operations — Sentence segmentation, extraction, and analysis
Documentation
Full documentation is available at the living website:
- Webpage: prabhashj07.github.io/nepalikit
- Source: docs/
Alternatively, browse the raw documentation files:
License
This project is licensed under the MIT License.
Author
- Prabhash Kumar Jha
- Email: prabhashj07@gmail.com
Metadata
Release files for nepalikit 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nepalikit-1.0.5.tar.gz | 484.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nepalikit-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 827.9 kB
Release files / nepalikit-1.0.5.tar.gz
| Download URL | nepalikit-1.0.5.tar.gz |
|---|---|
| Size | 484.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
722b2a9af3646073fe88b6d2b9db7c7dc120d45ef696936fe007c334465e1f4e
|
|
BLAKE2b-256 checksum How to use checksums |
4b347bbf38d9fff6aeab2c5f6019f8e9992cf8da72d8ef2e871099507a7724e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 14, 2026.
Transparency logRelease files / nepalikit-1.0.5-py3-none-any.whl
| Download URL | nepalikit-1.0.5-py3-none-any.whl |
|---|---|
| Size | 343.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c3c81603919d91320991f6968aa813721274d7ce6518c676fb2983265084f4e
|
|
BLAKE2b-256 checksum How to use checksums |
3e632149e833362aa868ab27624bc49fd57dbc33a0aec63bb7a47d3acdfe5251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 14, 2026.
Transparency log