Metadata-Version: 2.4
Name: short-language-detection
Version: 0.1.5
Summary: A simple language detection library for short texts.
Author-email: jourdelune <jourdelune863@gmail.com>
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: black>=25.1.0
Requires-Dist: emoji>=2.14.1
Requires-Dist: fasttext-wheel>=0.9.2
Requires-Dist: isort>=6.0.1
Requires-Dist: lingua-language-detector>=2.0.2
Requires-Dist: numpy==1.26.4
Requires-Dist: pytest-timeout>=2.3.1
Requires-Dist: pytest>=8.3.4
Description-Content-Type: text/markdown

# Short Language Detection

This project is designed to detect the language of short text snippets. It uses machine learning models to accurately identify the language of a given input.

## Features

- Detects language from short text inputs
- Supports multiple languages
- High accuracy and performance

## Installation

To install the necessary dependencies, run:

```bash
pip install short-language-detection
```

## Usage

To use the language detection model, run the following command:

```python
import short_language_detection as sld

# Create a detector
predictor = sld.Detector()

print(
    predictor.supported_languages
)  # {'ro': 'ROMANIAN', 'ru': 'RUSSIAN', 'nl': 'DUTCH', ...}

# Detect the language of a text
print(predictor.detect("hello"))
# ({'language': 'ENGLISH', 'code': 'EN', 'score': 1.0, 'prefered': True, 'reliable': True},)
```

## Contributing

We welcome contributions! Please fork the repository and submit a pull request.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Contact

For any questions or suggestions, please open an issue or contact us at [jourdelune863@gmail.com](mailto:jourdelune863@gmail.com).
