Generalized alignment and morphological parsing