You can contribute your existing custom dictionary files into the TextAnalyzer
framework. The framework supports two engines:
- jFrost - IBM® LanguageWare® 5 engine
- POE - IBM LanguageWare 2.7 engine
provides the underlying functionality required to enable all types of applications to process and understand natural language text. The IBM LanguageWare
provides the LanguageWare
Resource Workbench (LRW) to create custom dictionaries based on the jFrost engine. If you wish to use the default provided jFrost or POE engine as your dictionary's check engine, your dictionary should be jFrost or POE format, otherwise it will not be checked successfully.
For the complete dictionaries extension point information (com.ibm.rcp.textanalyzer.Dictionaries
), refer to Extension points schemas XPD623
To contribute a custom dictionary, perform the following procedure:
- Create a plug-in project to extend the com.ibm.rcp.textanalyzer.Dictionaries extension point.
- Put the custom dictionary .dic file into a directory in the plug-in project.
- Complete the custom dictionary extension in plugin.xml file.
- Build the project.
- Package the project in a feature.
The following is an example of contributing an English (United States) medical dictionary that can be checked by the jFrost engine into the TextAnalyzer
First, create a plug-in project named com.ibm.sample.dic.en_US_Medical
Then, create a directory named dictionaries
in the project, and put the custom dictionary file en_US_medical.dic
into that directory;
Next, complete the dictionary extension in the plugin.xml
file. The finished plugin.xml
file should look like:
description="English medical dictionary"
Next, build the project. If you are using Eclipse PDE tools, make sure that the dictionaries
directory is built into the binary. The build.properties
file should look like:
bin.includes = plugin.xml,\
After completing the above steps, the project structure should look like:
At last, you should include this plug-in in your feature project, make sure this plug-in will unpack after installation. To do this: either check Unpack the plug-in archive after the installation
in the feature Plug-ins and Fragments
view. Or, add the following lines to you feature.xml
The feature/plug-in containing the custom medical dictionary can now be added into the TextAnalyzer
framework after installation. In this sample, the file structure after installation should look like:
Parent topic: Contributing custom spell checking services