Tagger in Python
Do not take this code seriously; it is a hack.