Bech32's BCH code detects up to 4 typos with 100% certainty, locates up to 2 error positions, but deliberately refuses to auto-correct to prevent catastrophic mistakes.
A brief introduction to nostr identifiers and why adding context to them is important for UX and interoperability