Wordnet

From PSwiki
Jump to navigation Jump to search

We are using Wordnet for the morphing of words , example plural form to singular form.

Wordnet is a ThirdParty lib, we have in PSUnreal\ThirdParty\Wordnet, but be compiled separately and then its linked into our main executable.

We are using version 2.1 of Wordnet

Wordnet is initialized in NPCDialogDict::Initialize()

To work properly it needs to find the database files, which are read from DEFAULTPATH variable. This seems not to be properly working in Debug build, as the init fails to get the proper directory where the files are located.

We downloaded the database files from here: https://wordnet.princeton.edu/download/current-version contained in the Windows 2.1 version install.

We use Wordnet in Source\PSUnreal\bulkobjects\psnpcdialog.cpp:286 where we call morphword()