Module to sort words basded on linguistics