Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

Β© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Mohammed-el-kassoiri/ENGLISH-TO-DARIJA-TRANSALTOR

Domain:

natural language processing

Record type:

software
Creator:
Moh
Host:
# English to Darija Translator πŸ‡¬πŸ‡§βž‘οΈπŸ‡²πŸ‡¦ A simple yet clever web-based **English to Darija (Moroccan Arabic)** translator built with Flask. ## 🧠 How it Works - Uses a large Created Manualy dataset of English–Darija phrase pairs stored in `dataset.csv`. - Translates full sentences or phrases using a combination of: - Phrase matching - Word-by-word translation - Text correction via `TextBlob` - Learns over time β€” users can add new phrase pairs through the interface. ## πŸ–₯️ Features - Translate English sentences into Darija. - Add your own phrases to the dataset. - Intelligent matching for multi-word phrases. - Auto-correction for better translation accuracy. ## πŸš€ Getting Started ### 1. Clone the repository ```bash git clone github.com cd your-repo-name ``` ### 2. Install dependencies ```bash pip install -r requirements.txt ``` Make sure you also download NLTK's tokenizer data: ```python import nltk nltk.download('punkt') ``` ### 3. Run the app ```bash python app.py ``` Then open your browser at `127.0.0.1`. ## πŸ—ƒοΈ Dataset The translator uses a CSV dataset (`dataset.csv`) where each row is a pair: ``` darija,english ``` Example: ``` labas 3lik,how are you ``` ## πŸ“ File Structure ``` β”œβ”€β”€ app.py # Main Flask app β”œβ”€β”€ last.py # Core translation logic and helper functions β”œβ”€β”€ dataset.csv # Translation data β”œβ”€β”€ templates/ β”‚ └── try.html # HTML interface ``` ## πŸ“… Project Info - **Created:** April 2024 - **Made by MOHAMMED EL KASSOIRI, HICHAM MIMOUNI ET RIMA ENNAJI** --- Feel free to contribute or suggest improvements!

Visit

github.com

Languages

Arabic, Algerian SpokenArabic, Moroccan Spoken