npm install s9a
Replace matches within text with lowercase numeronym string "s9a"
// Matches several translations
s9a("synesthesia") // "s9a"
s9a("synaesthesia") // "s9a"
s9a("sinestesia") // "s9a"
s9a("synesthésie") // "s9a"
s9a("synesthésie") // "s9a"
// Case doesn't matter
s9a("SYNESTHESIA") // "s9a"
// Delimits via word boundary
s9a("notsynesthesia") // "notsynesthesia"
s9a("Synesthesia?") // "s9a?"
// Universally available
import s9a from "s9a" // ES6 loaders
const s9a = require("s9a") // CommonJS
const s9a = self.s9a // Elsewhere