Ordinal analysis of lexical patterns