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)
Release files for alkuhlani-student 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| alkuhlani_student-0.1.2.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alkuhlani_student-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / alkuhlani_student-0.1.2.tar.gz
| Download URL | alkuhlani_student-0.1.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9aa545975de011f3ea27e7f43a7001a916a150f0fdf7b2cc6abd3cf0d77de79a
|
|
BLAKE2b-256 checksum How to use checksums |
29fb9e91d03773d0558311d91ed16905c69b7a730c20fbfc6e983215077420b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0rc1
|
Release files / alkuhlani_student-0.1.2-py3-none-any.whl
| Download URL | alkuhlani_student-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17efa5f2f844b2db4cfe1bdb510fd2ddaa41409e2aaff3af429061628ec0b563
|
|
BLAKE2b-256 checksum How to use checksums |
cc158ed944b6e32f75d88a7a6df8bab8389a105065e063e648754123e84c7973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0rc1
|