In Korean, the pronunciation of a consonant often changes depending on the sound that follows it. A high-quality K-Romanizer must account for these phonological changes.
return "".join(result)
if == " main ": test_numbers = [1, 4, 9, 49, 99, 499, 999, 1984, 2024, 3999] for n in test_numbers: print(f"n:4 -> KRomanizer.romanize(n)") k-romanizer