Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
SmalltalkWordNet
Last updated at 11:31 am UTC on 24 April 2019
SmalltalkWordNet is a package to make WordNet (a lexical database for the English language [1]) available within the image,

Repository: https://github.com/hpi-swa/SmalltalkWordNet

 Object subclass: #WordNetDB
	instanceVariableNames: 'data wordIndex'
	classVariableNames: 'Instance'
	poolDictionaries: ''
       category: 'WordNet'

The package needs the Prolog database serialization download to be copied into a folder 'wordnet' in the directory where the image is.
Download: https://wordnet.princeton.edu/download/current-version

Then
 WordNetDB install.

Check
 WordNetDB current wordIndex size 
                                    148730

Example queries

 (WordNetDB current glossaryFor: 'mango' ) do: [:sense | Transcript show: '- ',sense; cr]
Result
 - large oval tropical fruit having smooth skin, juicy aromatic pulp, and a large hairy seed
 - large evergreen tropical tree cultivated for its large oval fruit

 (WordNetDB current glossaryFor: 'van' ) do: [:sense | Transcript show: '- ',sense; cr]
Result
- (Great Britain) a closed railroad car that carries baggage or freight
- any creative group active in the innovation and application of new concepts and techniques in a given field (especially in the arts)
- the leading units moving at the head of an army
- a camper equipped with living quarters
- a truck with an enclosed cargo space


https://en.wiktionary.org/wiki/van

Main classes

 Object subclass: #WordNetWord
	instanceVariableNames: 'synset type word syntacticMarker'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'WordNet'



 Object subclass: #WordNetSynset
	instanceVariableNames: 'synsetId words glossary hypernyms hyponyms instances instanceOf entailments entailmentOf similarTo similarAdjectives memberHolonymOf memberMeronyms substanceHolonymOf substanceMeronyms partHolonymOf partMeronyms causedBy causeOf attributeAdjectives attributeOfNouns'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'WordNet'




[1] https://en.wikipedia.org/wiki/WordNet
WordNet is a lexical database for the English language.[1] It groups English words into sets of synonyms called synsets, provides short definitions and usage examples, and records a number of relations among these synonym sets or their members. WordNet can thus be seen as a combination of dictionary and thesaurus.