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.15.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

albanian_tools-0.0.15-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: albanian_tools-0.0.15.tar.gz
  • Upload date:
  • Size: 4.2 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.15.tar.gz
Algorithm Hash digest
SHA256 6beb288b953e883e10de45e33d3bf1183af8f484101a02b862952d5eaa13f252
MD5 8e729d965755932f0f8dc8d6db69bf9c
BLAKE2b-256 65ff1f2c5c2f4ab9d778cf9651e7a58b35ac656b270c470a1f9595630fd0733f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for albanian_tools-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 94005beaa44617fb778dd7429bf5f596a761b692343b029c93fb84ba6ec3e955
MD5 1bfdc0abffab7281abe4798d3d5d8fc7
BLAKE2b-256 43c7f61c5c9c5ad205095f52364e65d753006a1a7e49eb0b224ed254ee882d0c

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