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

# Random Filan Fisteku name
print(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.14.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

albanian_tools-0.0.14-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: albanian_tools-0.0.14.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.14.tar.gz
Algorithm Hash digest
SHA256 6b252cc2f4a3838050c84ba1acb2cfc5b8e4374767d9cc6353c9105d6979c658
MD5 5cde8736aa84b7ac7d0addf6dde1b214
BLAKE2b-256 f14e4588c76b4c572b2df486f6f087d0dba9e06852929c4ecf127c831a06e8b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for albanian_tools-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 5cf1a4fcf6241e7f99d78b93b6f0c89cab390e66925927e14ba389dae58fef0f
MD5 46d524509831cfb3c74bb94e77b62f17
BLAKE2b-256 0141a58fafa57d7bd18a19527632a8ac02837d89ef322c62a0640ba5712b0e1a

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