helpers

Function summary
all-form-string-permutations l
test-fcg-example meanings utterances construction-inventory &key (direction (quote <->)) (equivalent-utterance-fn (function equal))
test-utterance utterance construction-inventory &key (nr-of-expected-meanings 1) additional-expected-utterances
test-fcg-example   meanings utterances construction-inventory &key (direction (quote <->)) (equivalent-utterance-fn (function equal))  [Function]

Tests whether all produced utterances for each meaning is a member of the expected utterances and whether all parses of each utterance correspond to one of the expected meanings.

test-utterance   utterance construction-inventory &key (nr-of-expected-meanings 1) additional-expected-utterances  [Function]

Tests whether the production of all parsings of an utterance correspond to the original utterance.

all-form-string-permutations   l  [Function]

Computes all flattened permutations of lists of strings.

Example: ( (he goes) (to bed) ) -> ( (he goes to bed) (to bed he goes) )