Documentation Tool

qalamقلم

Generate Arabic documentation from your code. No API. No translation service. Fully offline.

300+ terms · 4 formats · 3 languages
$ pip install qalam
The Problem
Arabic devs deserve Arabic docs.

Documentation in English is a barrier for Arabic-speaking developers. Translation APIs leak your code to third parties. LLMs hallucinate technical terms. qalam solves this with a deterministic parser and a curated Arabic technical dictionary. Your code stays on your machine. Your docs come out in Arabic.

Features
Parse. Translate. Generate.
Four capabilities that turn your source code into Arabic documentation.

Arabic Dictionary

300+ programming terms curated by Arabic developers. Not machine-translated. function = دالة, class = صنف, variable = متغير.

Code Parsing

Parses Python, JavaScript, and TypeScript. Extracts functions, classes, parameters, return types, and module structure.

Doc Generation

Generates complete Arabic documentation from parsed code. Function signatures, parameter descriptions, return values — all in Arabic.

4 Output Formats

Markdown, docstring injection, README sections, or standalone RTL HTML. Pick the format that fits your workflow.

Example
Python in. Arabic docs out.
Write your code normally. qalam handles the rest.
Your Python Code
def calculate_total(items, tax_rate=0.15):
    """Calculate total price with tax."""
    subtotal = sum(item.price for item in items)
    return subtotal * (1 + tax_rate)
Arabic Documentation
## دالة: calculate_total

حساب السعر الإجمالي مع الضريبة

المعاملات:
- items: قائمة العناصر
- tax_rate: نسبة الضريبة (افتراضي: 0.15)

القيمة المرجعة:
المجموع الكلي بعد الضريبة
In Action
Translate. Parse. Document.
qalam demo
Commands
5 commands. Zero config.

generate

Generate Arabic documentation from source code. Parses functions, classes, and modules. Outputs Markdown, docstrings, or HTML.

scan

Scan a directory and list detected functions, classes, and modules. Preview your code structure before generating docs.

translate

Translate a single programming term to Arabic. Quick lookup from the built-in technical dictionary.

dict

Print the full Arabic tech dictionary. 300+ terms with English-Arabic mappings for reference.

explain

Show how qalam works — parsing pipeline, dictionary lookup, and output format details.

Languages
3 languages. 6 file types.
qalam parses the most common web and scripting languages.
Python .py
JavaScript .js .jsx
TypeScript .ts .tsx
Output
4 formats. Your choice.

Markdown

Arabic .md files with RTL formatting. Ready for GitHub or docs sites.

Docstring

Inject Arabic docstrings directly into your source files.

README Section

Generate an Arabic section to append to your existing README.

HTML (RTL)

Standalone RTL HTML documentation page. Self-contained and ready to serve.

Dictionary
300+ Arabic programming terms.
Curated by Arabic developers. Not machine-translated.
EnglishArabicCategory
functionدالةCore
variableمتغيرCore
classصنفOOP
parameterمعاملCore
return valueقيمة مرجعةCore
arrayمصفوفةData
stringسلسلة نصيةData
loopحلقةControl
exceptionاستثناءError
moduleوحدةStructure
importاستيرادStructure
conditionalشرطControl
objectكائنOOP
methodتابعOOP
inheritanceوراثةOOP
Get Started
Three lines to Arabic docs.
# Install $ pip install qalam # Generate Arabic docs from your source $ qalam generate src/ # Scan code structure $ qalam scan src/ # Translate a single term $ qalam translate "function" # Browse the full dictionary $ qalam dict # Learn how it works $ qalam explain