First version to assign all page shapes to words.