Convert Ancient and Modern Greek between Greek script, Beta Code, and Latin script, with standards‑based presets and information‑loss diagnostics.
import { convert } from "@humanities/greek-conversion";
// Ancient Greek, in the SBL academic styleconvert("Ἕλλησιν ἐγένετο", "greek", "transliteration");// → Héllēsin egéneto
// Beta Code, as the TLG writes itconvert("*(/ELLHSIN E)GE/NETO", "beta-code", "greek");// → Ἕλλησιν ἐγένετο
// Modern Greek, as passports and maps write itconvert("Η Αθήνα είναι η πρωτεύουσα", "greek", "transliteration", { preset: "iso-843-type-2",});// → I Athína eínai i protévousa