Using the example thesaurus files

 

 

 

Expansion sets are always at the top of the list labelled as "E" followed by a number, replacement sets start with a "P" followed by a number and pattern name. Multi-pattern sets will have the same pattern number if they are part of the same set.