def posmap(foliapos):
    """Takes a POS-tag used in SoNaR/folia and returns
a POS-tag that can be used in NAF."""
    posdict = dict([
                    ("N","N"),
                    ("WW","V"),
                    ("ADJ","G"),
                    ("VNW","Q"),
                    ("LID","D"),
                    ("VZ","P"),
                    ("LET","O"),
                    ("VG","C"),
                    ("BW","A"),
                    ("TSW","O"),
                    ("SPEC","O"),
                    ("TW","O")
                    ])
    return posdict[foliapos]