https://gate.ac.uk/gatewiki/cow/test/unit/gate/yam/resources/yam-code.html