A package with a few functionalities for the albanian language.
Project description
AlbanianLanguage Package
The AlbanianLanguage
package is a comprehensive toolkit designed for handling various linguistic tasks associated with the Albanian language. It offers functionalities to read words from a CSV file, apply filters based on specific criteria, and optionally include additional details such as word types and definitions.
Installation
Install AlbanianLanguage
directly from PyPI:
pip install albanianlanguage
Usage
To use the AlbanianLanguage package, import and call its main functions:
from albanianlanguage import get_all_words
# Get all words from the specified CSV
words = get_all_words()
# Get words that start with "ka"
ex_words = get_all_words(starts_with="ka")
# Get words that include "pse"
ample_words = get_all_words(includes="pse")
# Get words along with their types and definitions
detailed_words = get_all_words(return_type=True, return_definition=True)
Parameters
- filename (str): Path to the CSV file. Defaults to 'albanianlanguage/ff.csv'.
- starts_with (str, optional): Filter words that start with this substring.
- includes (str, optional): Filter words that include this substring.
- return_type (bool, optional): If true, includes the word's type in the output.
- return_definition (bool, optional): If true, includes the word's definition in the output.
Features
Efficiently read and filter words from a CSV file. Optionally retrieve additional linguistic details such as type and definition. Designed specifically for applications related to the Albanian language. Requirements This package requires Python 3.x. No additional libraries are needed for the basic functionality, but make sure to handle dependencies if you expand the package.
Pushing to PYPI
!pip install setuptools wheel twine # Install the necessary tools:
!python setup.py sdist bdist_wheel # Generate distribution archives:
!rm -rf dist # if there are any previous builds
!twine upload dist/* # Upload the distribution to PyPI:
Contributing
Contributions to AlbanianLanguage are warmly welcomed. Please fork the repository, make your changes, and submit a pull request for review.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file albanianlanguage-0.1.4.tar.gz
.
File metadata
- Download URL: albanianlanguage-0.1.4.tar.gz
- Upload date:
- Size: 4.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d0e5aeb147e8c401248d3ee31e40c13a48c7c1dd04357ba2d79301e6e7b4efa |
|
MD5 | db09bba34d8d13a439c5ab0b5f9664a0 |
|
BLAKE2b-256 | 9b143114601d0e711a50505ff325b9461b41334d05a2ec192ed838e08c3cbbf7 |
File details
Details for the file albanianlanguage-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: albanianlanguage-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56bfb1608d6ae0e6e5e29060f934750faf1762c51e90eb9cdd1650e9d4347714 |
|
MD5 | dd8b95e6703e85d8a5b9028912a15828 |
|
BLAKE2b-256 | 098df23e4c0805ae824b09950a5cddb79f3ea72a01853d0cc8f43977549f9313 |