Metadata-Version: 2.4
Name: yoruba-nlp
Version: 0.1.1
Summary: A zero-dependency Yoruba Natural Language Processing library for dialect detection and stop word removal.
Author-email: Your Name <your.email@example.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Yoruba NLP

A production-ready, zero-dependency Python library for Yoruba Natural Language Processing (NLP). 

## Features
- **Zero External Dependencies**: Relies entirely on the Python standard library.
- **Stop Word Removal**: Efficiently strips regional and standard stop words from text using highly optimized `O(1)` sets.
- **Dialect Detection**: Identifies linguistic dialects (Standard, Southeastern, Ijebu) based on regional stop word prevalence, with perfect score tie-handling.
- **Frequency Extraction**: Calculates frequencies of stop words within provided text.

## Installation
```bash
pip install yoruba-nlp
```

## Quick Start
```python
from yoruba_nlp import YorubaNLP

# Initialize the NLP processor
processor = YorubaNLP(dialect="all")

# Remove stop words
text = "Mo n lọ sí ilé"
tokens = processor.remove_stop_words(text)
print(tokens)  # Output: ['lọ', 'ilé']

# Detect dialect
dialect_info = processor.detect_dialect("Ghán wo ọmọ náà")
print(dialect_info)  # Output: {'dialects': ['southeastern'], 'confidence': 100.0}
```
