Added heuristic stemming to aligner.