Matching inequalities with word sentences