🇦🇱 Albanian Language Package
A comprehensive Python package for processing and working with the Albanian language. This package provides access to Albanian words with filtering capabilities and detailed linguistic information.
🚀 Features
- Word Access: Retrieve Albanian words with powerful filtering options
- Linguistic Details: Get word types and definitions
- Efficient Processing: Optimized for performance with large datasets
- Simple API: Easy to integrate into any NLP or language processing pipeline
📦 Installation
Install the package directly from PyPI:
pip install albanianlanguage
🔍 Usage
Basic Usage
from albanianlanguage import get_all_words
# Get all Albanian words
all_words = get_all_words()
print(f"Total words: {len(all_words)}")
# Get words starting with a specific prefix
sh_words = get_all_words(starts_with="sh")
print(f"Words starting with 'sh': {len(sh_words)}")
Filtering Words
# Get words containing a specific substring
words_with_je = get_all_words(includes="je")
print(f"Words containing 'je': {len(words_with_je)}")
Getting Word Details
# Get words with their types and definitions
detailed_words = get_all_words(return_type=True, return_definition=True)
# Print some examples
for word in detailed_words[:5]:
print(f"Word: {word['word']}")
print(f"Type: {word.get('type', 'N/A')}")
print(f"Definition: {word.get('definition', 'N/A')}")
print("---")
📚 API Reference
get_all_words(starts_with=None, includes=None, return_type=False, return_definition=False)
Retrieves Albanian words based on filtering criteria.
Parameters:
starts_with(str, optional): If provided, only returns words that start with this substringincludes(str, optional): If provided, only returns words that contain this substringreturn_type(bool, optional): If True, includes word types in the resultreturn_definition(bool, optional): If True, includes word definitions in the result
Returns:
- When
return_type=Falseandreturn_definition=False: List of strings (words) - Otherwise: List of dictionaries with word details
🤝 Contributing
Contributions are welcome! Check out the Contributing Guidelines to get started.
Development Setup
-
Clone the repository:
git clone https://github.com/florijanqosja/albanianlanguage.git cd albanianlanguage
-
Install development dependencies:
pip install -e . pip install -r requirements-dev.txt
-
Run tests:
pytest
❓ Support
If you encounter any issues or have questions, please file an issue.
🚀 Support the Project
If you find this project helpful, please consider supporting its development:
📜 License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for albanianlanguage 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| albanianlanguage-0.1.8.tar.gz | 4.2 MB | Without provenance | Details for albanianlanguage-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| albanianlanguage-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for albanianlanguage-0.1.8-py3-none-any.whl |
Total release size: 8.3 MB
Release files / albanianlanguage-0.1.8.tar.gz
| Download URL | albanianlanguage-0.1.8.tar.gz |
|---|---|
| Size | 4.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5c43517a2cdb79e432eb076fe739aeffd9d9cf7e156bb1055ad9afc8715b353
|
|
BLAKE2b-256 checksum How to use checksums |
5ae3bd52d320efe96d7bce4f9af80ab6d4850acecebf152b2d002cec693b9013
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Release files / albanianlanguage-0.1.8-py3-none-any.whl
| Download URL | albanianlanguage-0.1.8-py3-none-any.whl |
|---|---|
| Size | 4.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54de126bf0b069638e970931727c038ad5e97fe31cacb336679da62d21b3305f
|
|
BLAKE2b-256 checksum How to use checksums |
dfd0786f56c0d61afcddb1879c71dc62c0eb7eface1e6b49a7fdef82861feee9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Security for albanianlanguage 0.1.8
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.