WORKED CASE · SYNTHETIC TEST DATA
Recognize the abbreviation i18n
A numeronym keeps the first and last characters while replacing the middle with a count; it is useful in technical shorthand.
Input and settings
internationalizationRun and interpret
Enter one word. The 18 counts the letters between i and n, not the whole word.
Expected output
i18nScope and possible misuse
Different words can produce the same abbreviation. Counts use JavaScript UTF-16 length, so use Latin words for this example rather than treating emoji as one counted unit.