Next: , Previous: , Up: Modules   [Contents][Index]


5.9 Word

The word module provides the following strategies:

word

Match separate words within headwords.

first

Match the first word within headwords.

last

Match the last word within headwords.

The initialization procedure loads all three if given no arguments, as in

load-module word;

If arguments are given, the initialization procedure loads only those strategies that are listed in its command line. For example, the statement below loads only ‘first’ and ‘last’ strategies:

load-module word {
   command "word first last";
}   

The following is an example of using one of those strategies in a dico session:

C: MATCH devdict word government
S: 152 1 matches found: list follows
S: devdict "MONARCHICAL GOVERNMENT"
S: .
S: 250 Command complete