Albanian Tools
Installation
pip install albanian_tools
Usage
There are three main functions: remove_leading_numbers
, replace_numbers_with_albanian_text
, and integer_to_albanian_text_converter
.
from albanian_tools import AlbanianTools
albanian_tool = AlbanianTools()
text_1 = "913. Paragraf interesant"
text_1_text_numbers = albanian_tool.remove_leading_numbers(text_1)
print(f"remove_leading_numbers: {text_1_text_numbers}")
text_2 = "Neni 217 kalon tutje."
text_2_text_numbers = albanian_tool.replace_numbers_with_albanian_text(text_2)
print(f"replace_numbers_with_albanian_text: {text_2_text_numbers}")
integer_example = 717
integer_example_text_number = albanian_tool.integer_to_albanian_text_converter(integer_example)
print(f"integer_to_albanian_text_converter: {integer_example_text_number}")
print(f"random_albanian_number: {albanian_tool.random_albanian_number()}")
print(f"random_albanian_name: {albanian_tool.random_albanian_name()}")