Solution for the word-rank problem