GreekNameCorrection

Simple yet flexible JavaScript library for correcting and formatting Greek names. Zero dependencies, pure JavaScript, perfect for Greek applications.

Get Started View on GitHub

Features

Zero Dependencies

Lightweight and fast with no external packages required. Pure JavaScript implementation ensures minimal bundle size.

🔄

Transliteration

Bidirectional transliteration between Greeklish ↔ Greek ↔ Latin with intelligent multi-character pattern matching.

📝

Smart Formatting

Proper capitalization, syntax correction, and automatic handling of common misspellings in Greek names.

🎯

Gender Detection

Identifies gender from name endings with high accuracy, supporting both modern and traditional Greek names.

🔀

Genitive Conversion

Automatic conversion to genitive forms (του/της) for formal document generation and proper Greek grammar.

👔

Title Support

Handles Greek honorifics including academic (Δρ., Καθ.), political, and religious titles.

📊

Statistics

Comprehensive name analysis including length, word count, character distribution, and linguistic features.

🔍

Diminutive Detection

Recognizes nickname patterns and common diminutive forms of Greek names for better matching.

0 Dependencies
100% Pure JavaScript
2.1.0 Current Version
GPL-3.0 Open Source

Installation

npm install greek-name-correction
View on npm View on GitHub

Examples

Basic Usage
// Simple string correction
const corrected = GreekNameCorrection('giorgos papadopoulos');
// Returns: "Γιώργος Παπαδόπουλος"
With Transliteration
// Convert Greeklish to Greek
const result = GreekNameCorrection('dr giorgos tou papa', {
  transliterate: 'greeklish-to-greek',
  handleTitles: true,
  handleParticles: true
});
// Returns: "Δρ. Γιώργος του Παπά"
Complete Processing
// Full feature pipeline
const result = GreekNameCorrection('maria konstantinou', {
  preserveOriginal: true,
  detectGender: true,
  convertToGenitive: true,
  generateSortKey: true,
  statistics: true
});
// Returns comprehensive analysis object
Batch Processing
// Process arrays
const names = ['giorgos', 'maria', 'nikos'];
const corrected = GreekNameCorrection(names, {
  transliterate: 'greeklish-to-greek'
});
// Returns: ["Γιώργος", "Μαρία", "Νίκος"]

Try It Out

Corrected Result:
Γιώργος Παπαδόπουλος