A modern web application that converts Tunisian Arabic text between Latin and Arabic scripts, with support for both Tunisian dialect and Modern Standard Arabic (Fusha).
# Tunisian Arabic Converter ๐น๐ณ
A modern web application that converts Tunisian Arabic text between Latin and Arabic scripts, with support for both Tunisian dialect and Modern Standard Arabic (Fusha).
## Features
- ๐ Bidirectional conversion:
- Latin to Arabic script (Tunisian dialect)
- Latin to Modern Standard Arabic (Fusha)
- ๐ Bilingual interface (English/Arabic)
- ๐ค Smart number-to-letter conversion (3 โ ุน, 7 โ ุญ, etc.)
- ๐ Recent conversions history
- ๐พ Local storage persistence
- ๐ RTL/LTR support
- ๐ฑ Responsive design
## Examples
| Latin Input | Tunisian Output | MSA Output |
| ------------------ | --------------- | --------------------- |
| 3aslema | ุนุณูุงู
ุฉ | ุงูุณูุงู
ุนูููู
|
| chneya 7alek? | ุดููุฉ ุญุงููุ | ููู ุญุงููุ |
| taw nemchi lel dar | ุชูุง ูู
ุดู ููุฏุงุฑ | ุณุฃุฐูุจ ุฅูู ุงูู
ูุฒู ุงูุขู |
## Tech Stack
- โก Next.js 14 (App Router)
- ๐ท TypeScript
- ๐จ Tailwind CSS
- ๐งฉ Shadcn/UI
- ๐ค Claude AI API
## Getting Started
### Prerequisites
- Node.js 18+
- An Anthropic API key
### Installation
1. Clone the repository:
```bash
git clone
github.com
cd tunisian-converter
```
2. Install dependencies:
```bash
npm install
```
3. Set up environment variables:
```bash
cp .env.example
```
Add your Anthropic API key to `.env`:
```env
ANTHROPIC_API_KEY=your_api_key_here
```
4. Start the development server:
```bash
npm run dev
```
Visit `
localhost` to see the app.
## Development
```bash
# Run development server
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Run linter
npm run lint
```
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open โฆ