Dictionary Plurals

Dictionaries provide a capability for automatically recognising plural forms of entry texts. It is enabled for subsequent entries in the Dictionary via the attribute command:

#generalise:plural true

and disabled with

#generalise:plural false

The capability is quite powerful and can recognise complex and irregular pluralizations:

cat -> cats
legion of men -> legions of men
legion of man -> legions of man
mouse -> mice
person -> persons, people

Examples

[To be found with the example Dictionaries distributed with Sintelix]

/*
#EXAMPLE
The plural forms of person are persons & people.
dog - dogs are human's best friends.
children of hope.
cities in the sky
blind mice
#EXAMPLE END
*/
#wordlist Demo5-generalise
// turn on "plural" generalization
#generalise:plural true
person // two alternative plural forms will also be matched: persons & people
city in the sky
child of hope
blind mouse
// turn off "plural" generalization
#generalise:plural false
dog

Generating the results: