SWI-Prolog Wordnet driver

This pack provides access to the Princeton WordNet database. The pack provides:

This is work I did very long ago. This version is based on a modified version I was pointed as by Samer Abdallah. The code has been refactored for use as a pack, PlDoc comments have been brought up to date.

Bug

There is a bug in SWI-Prolog 7.6.2/7.7.3 that causes the first query after a lazy load to fail. A fix has been pushed to SWI-Prolog's repo.

Prolog files

pack.plShow source
prolog/wn.pl  -- Wordnet lexical and semantic databaseShow source
load_wordnet/0Load all of wordnet.Source
ss_type/2Mapping between readable syntactic category and code.Source
wn_ant/4The ant operator specifies antonymous word s.Source
wn_at/2The at operator defines the attribute relation between noun and adjective synset pairs in which the adjective is a value of the noun.Source
wn_cat/3Break the synset id into its syntactic category and offset as defined in the manpage prologdb.5.Source
wn_cls/5The cls operator specifies that the first synset has been classified as a member of the class represented by the second synset.Source
wn_cs/2First kind of event is caused by second.Source
wn_der/4The der operator specifies that there exists a reflexive lexical morphosemantic relation between the first and second synset terms representing derivational morphology.Source
wn_ent/2The ent operator specifies that the second synset is an entailment of first synset.Source
wn_fr/3fr operator specifies a generic sentence frame for one or all words in a synset.Source
wn_g/2The g operator specifies the gloss for a synset.Source
wn_hyp/2The hyp operator specifies that the second synset is a hypernym of the first synset.Source
wn_ins/2The ins operator specifies that the first synset is an instance of the second synset.Source
wn_mm/2The mm operator specifies that the second synset is a member meronym of the first synset.Source
wn_mp/2The mp opeQrator specifies that the second synset is a part meronym of the first synset.Source
wn_ms/2The ms operator specifies that the second synset is a substance meronym of the first synset.Source
wn_per/4The per operator specifies two different relations based on the parts of speech involved.Source
wn_ppl/4ppl operator specifies that the adjective first word is a participle of the verb second word.Source
wn_s/6A s operator is present for every word sense in WordNet.Source
wn_sa/4The sa operator specifies that additional information about the first word can be obtained by seeing the second word.Source
wn_sim/2The sim operator specifies that the second synset is similar in meaning to the first synset.Source
wn_sk/3A sk operator is present for every word sense in WordNet.Source
wn_syntax/3The syntax operator specifies the syntactic marker for a given word sense if one is specified.Source
wn_vgp/4vgp operator specifies verb synsets that are similar in meaning and should be grouped together when displayed in response to a grouped synset search.Source
prolog/wn_portray.plShow source