https://5dok.net/document/lq5o437z-normalization-and-parsing-algorithms-for-uncertain-input.html