Metadata-Version: 2.4
Name: supernova-norm
Version: 2.0.0
Summary: Unicode text normalization for Nepali and English
Author: Supernova11c
License-Expression: Apache-2.0
Keywords: nepali,normalization,unicode,nlp,supernova
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Processing :: Linguistic
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: regex>=2023.0.0

# Supernova Nepali Normalizer

Python text normalization library from Supernova11c.

## Install

```bash
pip install supernova-norm
```

## Quick start

```python
from supernova_norm import normalize

text = "  नेपाली   भाषा  "
print(normalize(text))
```

## Class-based usage

```python
from supernova_norm import SupernovaNepaliNormalizer

normalizer = SupernovaNepaliNormalizer()
print(normalizer.normalize("“नेपाल”—सुन्दर देश"))
```

## Normalization rules

- Unicode NFC normalization
- Removal of zero-width non-joiner and joiner characters
- Standardization of selected dash and quotation marks
- CRLF and carriage-return conversion to line breaks
- Tabs converted to spaces
- Repeated spaces and excessive blank lines reduced
- Leading and trailing whitespace removed

`None` returns an empty string. Other inputs are converted to strings.

## Project

Source: https://huggingface.co/Supernova11c/Supernova-Nepali-Normalizer-V2
