Skip to main content

Creates REALLY random Persian words

Project description

PersianWords

Version: 1.0.1
License: MIT
Author: Masoud Najafzadeh Kalat
Email: masoudnk2@gmail.com
GitHub: https://github.com/masoudnk/PersianWordsLib


DOWNLOAD LATEST VERSION FROM GITHUB!👈

📝 Summary

PersianWords is a Python library that provides random words and paragraphs in the Persian language.
The internal word list is extensive and includes various types, forms, and orthographic variants (including diacritics).

This library currently contains over 600,000 unique Persian words, making it ideal for:

  • UI/UX text generation (like "Lorem Ipsum" for Persian)
  • Educational apps and games
  • NLP model testing
  • Language research and simulations

📦 Installation

Coming soon to PyPI...

For now, you can install directly from source:

git clone https://github.com/masoudnk/PersianWordsLib.git
cd PersianWordsLib

🔧 Usage

Import the package and use the functions as follows:

from mnk_persian_words.persian_words import (
    get_random_persian_word,
    get_random_persian_paragraph
)

🧠 Functions

get_random_persian_word(words_count: int = 1) -> str

Returns a space-separated string of words_count randomly selected Persian words.

  • Output contains no punctuation or trailing dots
  • Maximum count: 600,000+
get_random_persian_word(3)
# Output: 'خانه گل زیبا'

get_random_persian_paragraph(words_count: int = 5, paragraphs: int = 1) -> str

Returns paragraphs paragraphs, each containing words_count words.

  • Words in each paragraph are space-separated
  • Each paragraph (except the last) ends with a line break (\n)
  • No punctuation is included in the output
get_random_persian_paragraph(5, 2)
# Output:
# 'صبح روشن خانه امید درخت
# شب آرام رود ساکت طلوع'

🔗 Sources / Data References

This project uses publicly available Persian word lists from the following sources:


✅ Suitable for

  • Random Persian content generation
  • Educational applications
  • Linguistic research
  • UI/UX placeholder text
  • Fun language experiments!

📌 License

This project is licensed under the MIT License. You are free to use, modify, and distribute with attribution.

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

mnk_persian_words-1.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mnk_persian_words-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file mnk_persian_words-1.0.2.tar.gz.

File metadata

  • Download URL: mnk_persian_words-1.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for mnk_persian_words-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ee5ab4507c8cbe84d07f5b12069f55e2070e1c07b093e251947696f79fa7cd43
MD5 749dc2a4fe47e65c31268e6864e9c5c8
BLAKE2b-256 cd7fec662c6e65a231b2f8315e15550b6026a80ea704c64ddf0442a09dde4803

See more details on using hashes here.

File details

Details for the file mnk_persian_words-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mnk_persian_words-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bafe2801e61abee4f0090255b8675d35ee52ee3a581f18c79f46ae43b732eb39
MD5 4b9a2dc8d2094616c7140164be32e552
BLAKE2b-256 2d9ca08f24cb3f0b53cac951cd38559f65192e8b5dd0adeac7af133d6bc5a1f4

See more details on using hashes here.

Supported by

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