Convert hyphen-minus to appropriate symbol

The hyphen-minus symbol is a jack of all trades.

  • In mathematical equations, or next to numbers, it should be a minus sign, -23 → −23
  • In single words that a hyphenated affix, it should be a non‑breaking hyphen, ‑ This means that the word doesn’t break and get separated over two lines. Examples, pre‑Roman (rather than pre-Roman).
  • When two separate words are hyphenated together, use a breaking hyphen. This allows breaking across lines.
  • When there’s one thing named after two different people, use an en dash. e.g. Einstein–Rosen Bridge.
  • When it’s one person’s name, use a hyphen that can break over lines. Catherine Zeta‑Jones.

You might also want to flag when one of the above is used incorrectly, and mark visually the different types of hyphens, as they can be difficult to tell apart.