โ† Back to Web-App

LangDetect โ€” Language Detection System

LangDetect Language Detection System
๐Ÿ“…2024
๐ŸŒ17 Languages
๐ŸŽฏ98% Accuracy
๐Ÿš€Deployed on Railway
Python Flask Scikit-learn Multinomial Naรฏve Bayes NLP Docker Railway HTML/CSS/JS
๐Ÿ“‚ View Code on GitHub ๐Ÿš€ View Live App

๐ŸŽฏ Project Overview

LangDetect is a Flask-based web application that detects the language of any input text using machine learning. The app uses a trained Multinomial Naรฏve Bayes model to deliver instant predictions with 98% accuracy across 17 supported languages, and is deployed on Railway for seamless access.

Users paste or type any text into the input field, hit Predict, and the model identifies the language in real time โ€” along with a confidence score. If the input falls outside the 17 supported languages, the app returns a custom "Unable to detect language" message rather than a wrong guess.

โœจ Features

๐ŸŒ Supported Languages

๐Ÿ‡บ๐Ÿ‡ธ English    ๐Ÿ‡ซ๐Ÿ‡ท French    ๐Ÿ‡ช๐Ÿ‡ธ Spanish

Western European languages with the broadest global reach.

๐Ÿ‡ต๐Ÿ‡น Portuguese    ๐Ÿ‡ฎ๐Ÿ‡น Italian    ๐Ÿ‡ฉ๐Ÿ‡ช German

Romance and Germanic language family representatives.

๐Ÿ‡ท๐Ÿ‡บ Russian    ๐Ÿ‡ธ๐Ÿ‡ช Swedish    ๐Ÿ‡ณ๐Ÿ‡ฑ Dutch

Northern and Eastern European languages.

๐Ÿ‡ธ๐Ÿ‡ฆ Arabic    ๐Ÿ‡น๐Ÿ‡ท Turkish    ๐Ÿ‡ฌ๐Ÿ‡ท Greek

Middle Eastern and Mediterranean language coverage.

๐Ÿ‡ฎ๐Ÿ‡ณ Hindi    ๐Ÿ‡ฎ๐Ÿ‡ณ Tamil    ๐Ÿ‡ฎ๐Ÿ‡ณ Malayalam    ๐Ÿ‡ฎ๐Ÿ‡ณ Kannada

Major Indian subcontinent languages across multiple language families.

๐Ÿ‡ฉ๐Ÿ‡ฐ Danish

Scandinavian language rounding out the 17-language coverage.

๐Ÿ–ผ๏ธ App Preview

Home Page

Home Page โ€” Detection Interface

Text input area with a Predict button and a full grid of 17 supported languages shown with flag icons.

Prediction Page

Prediction Page โ€” Result Display

Shows the detected language and confidence score. Displays a custom message for unsupported languages.

Non listed Page

Non listed Page โ€” Result Display

Shows the non-listed language result and custom message showing.

Error Page

Error Page โ€” Validation Feedback

Descriptive error messages for empty or invalid inputs, with a visual illustration for better UX.

๐Ÿ› ๏ธ Technologies Used

โœ… Input Validation Rules

๐Ÿ”„ Example Workflow

Sample Input

Possible Outputs

โš™๏ธ Installation Guide

Local Setup

Docker Setup

Deploy on Railway