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 أو أحدث

الكاتب - Author

Alkuhlani Student (CYS 2)


صُنع من قبل Alkuhlani Student (CYS 2)

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.2.tar.gz (4.4 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.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alkuhlani_student-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 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.2.tar.gz
Algorithm Hash digest
SHA256 9aa545975de011f3ea27e7f43a7001a916a150f0fdf7b2cc6abd3cf0d77de79a
MD5 7a3c0ee6f5e9d1dc47130b1574bf7048
BLAKE2b-256 29fb9e91d03773d0558311d91ed16905c69b7a730c20fbfc6e983215077420b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alkuhlani_student-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17efa5f2f844b2db4cfe1bdb510fd2ddaa41409e2aaff3af429061628ec0b563
MD5 a4ee5b6f9d6011aae705523814615888
BLAKE2b-256 cc158ed944b6e32f75d88a7a6df8bab8389a105065e063e648754123e84c7973

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