Simple yet flexible JavaScript library for correcting and formatting Greek names. Zero dependencies, pure JavaScript, perfect for Greek applications.
Lightweight and fast with no external packages required. Pure JavaScript implementation ensures minimal bundle size.
Bidirectional transliteration between Greeklish ↔ Greek ↔ Latin with intelligent multi-character pattern matching.
Proper capitalization, syntax correction, and automatic handling of common misspellings in Greek names.
Identifies gender from name endings with high accuracy, supporting both modern and traditional Greek names.
Automatic conversion to genitive forms (του/της) for formal document generation and proper Greek grammar.
Handles Greek honorifics including academic (Δρ., Καθ.), political, and religious titles.
Comprehensive name analysis including length, word count, character distribution, and linguistic features.
Recognizes nickname patterns and common diminutive forms of Greek names for better matching.
// Simple string correction
const corrected = GreekNameCorrection('giorgos papadopoulos');
// Returns: "Γιώργος Παπαδόπουλος"
// Convert Greeklish to Greek
const result = GreekNameCorrection('dr giorgos tou papa', {
transliterate: 'greeklish-to-greek',
handleTitles: true,
handleParticles: true
});
// Returns: "Δρ. Γιώργος του Παπά"
// Full feature pipeline
const result = GreekNameCorrection('maria konstantinou', {
preserveOriginal: true,
detectGender: true,
convertToGenitive: true,
generateSortKey: true,
statistics: true
});
// Returns comprehensive analysis object
// Process arrays
const names = ['giorgos', 'maria', 'nikos'];
const corrected = GreekNameCorrection(names, {
transliterate: 'greeklish-to-greek'
});
// Returns: ["Γιώργος", "Μαρία", "Νίκος"]