AboutProjectsCertificationsBlog
© 2026 Amir Aliu
Flag of Kosovo

AI Language Detection

May 28, 2024

This code is a language detection model that uses the Naive Bayes algorithm to classify a given text into one of the 22 languages present in the dataset.

Source Code
PythonPandasNumpySci-Kit LearnTabulate

Features

  • Naive Bayes based language detection model
  • Classifies text into 22 supported languages
  • Simple flowchart showing model logic
  • Lightweight and easy to run on small datasets

Gallery

Flowchart showing the model logic
Dataset 1 language count
Dataset 2 language count
Language Prediction