When user input a keywords eg. "designer", we could search for "design" too.
I tried native C version of wordnet. And I can see when I input "designer", by specify the point_type = "NOMINALIZATIONS", we should get words "RELATED TO". So it is working then I could get "design" from input "designer".
But the problem is when I use your version (I got lastest version from svn yesterday.) I can't see "Related to" in the search.buf. Others seems ok. I viewed your code. And get confirmed you have wrote the code for "related to". But the code never go that that area.
This morning, I was carefully comparing your code with the original wordnet source code. And need code to catch why it didn't work. At last, I found the problem is, when you parse "+", which should be "NOMINALIZATIONS", value (20).
check
http://wordnet.princeton.edu/man/wnsearch.3WNDERIVATION 20 + Derivationally related form
FRAMES 25 n/a Verb example sentences and generic frames
But in your code, you give 25 the "+" too. which should be "".
After change "new PointerType("+", "FRAMES", "Sample Sentences"); // 25" to "new PointerType("", "FRAMES", "Sample Sentences"); // 25".
The problem solved.