Optimisation of intelligent English grammar error correction based on multi-strategy Pinyin detection and hierarchical enhancement | Synapse