Extending the generation of word graphs for a cross-word m-gram decoder