Skip to content

Main content

Japanese Macron Romanization Search Variant Tool

Create a macron-free search variant by removing only Latin vowel macrons; this does not convert between romanization systems.

Loading tool…

Description

Replace precomposed macron vowels with their corresponding unmarked ASCII vowel, preserving case.

Unicode text can be counted as code points, UTF-16 units, encoded bytes, or grapheme clusters. A literal character transformation follows a specific mapping and may preserve distinctions that a broader normalization would remove.

Replace precomposed macron vowels with their corresponding unmarked ASCII vowel, preserving case.

When to use this tool

Use Japanese Macron Romanization Search Variant when you need one explicitly bounded Unicode mapping, count, or encoding component.

How to use the tool and how it works

  1. Enter romanizedText. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read searchVariant. Use the output convention below.

Replace precomposed macron vowels with their corresponding unmarked ASCII vowel, preserving case. Also remove a combining macron immediately after an ASCII vowel.1

Input fieldMeaning and unitsAccepted input
romanizedTextRomanized TextRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
searchVariantSearch VariantRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "romanizedText": "Tōkyō"
  },
  "output": {
    "searchVariant": "Tokyo"
  }
}

Limitations and assumptions

  • This is a specific lossy search transformation without general Unicode normalization, complete romanization equivalence, or preferred Japanese name verification.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Choose normalization and comparison rules for the intended language and preserve the original text when creating a search variant.

References

  1. Calculation and input contract: asian-studies/japanese-macron-romanization-search-variant — tool.io

Similar or alternative tools