alidval: program to calculate "alphabetical id values" for text strings