Skip to main content

A simple Python package to analyze word frequency in text - محلل تكرار الكلمات

Project description

Alkuhlani Student - محلل تكرار الكلمات

حزمة Python بسيطة لتحليل تكرار الكلمات في النصوص.

A simple Python package to analyze word frequency in text.

التثبيت - Installation

pip install alkuhlani-student

الاستخدام - Usage

استخدام الحزمة في كود Python

from alkuhlani_student import word_frequency, analyze_text

# تحليل النص
text = "مرحبا بك في محلل تكرار الكلمات مرحبا"
result = word_frequency(text)
print(result)
# Output: [('مرحبا', 2), ('بك', 1), ('في', 1), ('محلل', 1), ('تكرار', 1), ('الكلمات', 1)]

# الحصول على نتائج منسقة
formatted_result = analyze_text(text)
print(formatted_result)

استخدام الحزمة من سطر الأوامر

alkuhlani-student

أو

python -m alkuhlani_student

الميزات - Features

  • تحليل تكرار الكلمات في النصوص
  • دعم اللغة العربية والإنجليزية
  • إزالة علامات الترقيم تلقائياً
  • ترتيب النتائج حسب التكرار
  • واجهة سطر أوامر سهلة الاستخدام
  • قابلة للاستخدام كمكتبة في مشاريعك

أمثلة - Examples

مثال 1: تحليل نص عربي

from alkuhlani_student import word_frequency

text = "Python هي لغة برمجة قوية. Python سهلة التعلم."
result = word_frequency(text)
print(result)
# Output: [('python', 2), ('هي', 1), ('لغة', 1), ('برمجة', 1), ('قوية', 1), ('سهلة', 1), ('التعلم', 1)]

مثال 2: تحليل نص إنجليزي

from alkuhlani_student import word_frequency

text = "Hello world! Hello Python. Python is great."
result = word_frequency(text)
print(result)
# Output: [('hello', 2), ('python', 2), ('world', 1), ('is', 1), ('great', 1)]

مثال 3: استخدام analyze_text

from alkuhlani_student import analyze_text

text = "مرحبا مرحبا بك"
print(analyze_text(text))

المتطلبات - Requirements

  • Python 3.7 أو أحدث

الترخيص - License

MIT License

المساهمة - Contributing

المساهمات مرحب بها! يرجى فتح issue أو pull request.

Contributions are welcome! Please open an issue or pull request.

الكاتب - Author

alkuhlani

الدعم - Support

إذا واجهتك أي مشكلة، يرجى فتح issue على GitHub.

If you encounter any problems, please open an issue on GitHub.


صُنع بـ ❤️ من قبل alkuhlani

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

alkuhlani_student-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

alkuhlani_student-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file alkuhlani_student-0.1.0.tar.gz.

File metadata

  • Download URL: alkuhlani_student-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for alkuhlani_student-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e64d890e06d22adcada0e631d88474b541b973b1da3fd63296539513401b79c
MD5 bd0fd18444e884c938fbffb23c194533
BLAKE2b-256 a8e32030c410c2291b566720a88e6f899f202ab9e0c575e2bfee0048b2ec9999

See more details on using hashes here.

File details

Details for the file alkuhlani_student-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for alkuhlani_student-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6c3c4911473b6c81caaf757fc61becb2e40fdc7b6d8e1712c23e93b1b29f0b8
MD5 a902ab2fef5ee32180c1bea3f2346fa7
BLAKE2b-256 3c551db426012f8d54586aa119603c81d33e6d636daa54afb4f578d6cc0bbb43

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