Skip to main content

A small package for working with Albanian language texts.

Project description

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()

# remove_leading_numbers
text_1 = "913. Paragraf interesant" # Returns "Paragraf interesant"
text_1_text_numbers = albanian_tool.remove_leading_numbers(text_1)
print(f"remove_leading_numbers: {text_1_text_numbers}")

# replace_numbers_with_albanian_text
text_2 = "Neni 217 kalon tutje." # Returns "Neni dyqind e shtatëmbëdhjetë 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_to_albanian_text_converter
integer_example = 717 # Returns "shtatëqind e shtatëmbëdhjetë"
integer_example_text_number = albanian_tool.integer_to_albanian_text_converter(integer_example)
print(f"integer_to_albanian_text_converter: {integer_example_text_number}")

# Random number in Albanian
print(f"random_albanian_number: {albanian_tool.random_albanian_number()}")

# Random Albanian name
print(f"random_albanian_name: {albanian_tool.random_albanian_name()}")

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

albanian_tools-0.0.16.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

albanian_tools-0.0.16-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file albanian_tools-0.0.16.tar.gz.

File metadata

  • Download URL: albanian_tools-0.0.16.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.19

File hashes

Hashes for albanian_tools-0.0.16.tar.gz
Algorithm Hash digest
SHA256 9945b56431e9c9e82269fefdf8a2bd56599bf45f7248ae21defa399541df2531
MD5 bb28512047726ce14fa4c9a3a5372443
BLAKE2b-256 ffce8b5070bee3b72395576ec6597c6a982cc9df0177bc61219c719ce7c292cd

See more details on using hashes here.

File details

Details for the file albanian_tools-0.0.16-py3-none-any.whl.

File metadata

File hashes

Hashes for albanian_tools-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 ff2ddbb8075bf7e84f2f0be8236fe2cb896f7df7d487e234459c22c5986ab69f
MD5 a674c06cd65e8e7b9866cf69e5367613
BLAKE2b-256 142d801b192e4b0ddc37b43e25f17770856a41e154e067ed32b6cc794dde6440

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page