qalamقلم

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

300+ terms · 4 formats · 3 languages — Arabic-first code documentation for Python, JavaScript, and TypeScript.
$ pip install qalam

Chapter I
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.

Chapter II
Features
Parse. Translate. Generate.

Chapter III
Example
Python in. Arabic docs out.
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: نسبة الضريبة

القيمة المرجعة:
المجموع الكلي بعد الضريبة

Chapter IV
Supported Languages
3 languages. 6 file types.
LanguageExtensions
Python.py
JavaScript.js .jsx
TypeScript.ts .tsx

Chapter V
Output Formats
4 formats. Your choice.
FormatDescription
MarkdownArabic .md files with RTL formatting. Ready for GitHub or docs sites.
DocstringInject Arabic docstrings directly into your source files.
READMEGenerate an Arabic section to append to your existing README.
HTML (RTL)Standalone RTL HTML documentation page. Self-contained.

Chapter VI
Arabic Tech Dictionary
300+ terms curated by Arabic developers.
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

Demo
See It
qalam demo

Chapter VII
Commands
5 commands. Zero config.

Chapter VIII
Get Started
# Install $ pip install qalam # Generate Arabic docs $ qalam generate src/ # Scan code structure $ qalam scan src/ # Translate a term $ qalam translate "function" # Browse the dictionary $ qalam dict # Learn how it works $ qalam explain