List of sample applications
The sdk package includes a set of sample Java™ applications that demonstrate techniques for using IBM® NameWorks Java APIs. The sample applications can assist in determining whether your own applications are behaving correctly.
The IBM NameWorks sample applications are located in the .../sdk/samples/ directory.
Java samples
The sample applications depend on a LocalText.java file. IBM
NameWorks returns only numeric values for culture codes, country
codes, and other linguistic values, so the code in LocalText.java converts numeric
values to readable text.
- Analysis
- Determines a name category and parses Personal names.
ParseAlternateandParseNameobjects provide information about possible parses found. Personal name. A name category (either Organization or Personal) is then is returned in aCategorizeDataobject. If the name is determined to be a personal name gender and country data is returned for the name, along with confidence and frequency values for the top five countries that the name is most associated with. - CompleteAnalysis
- Determines a name category and performs analysis for Personal names. A name category
(either Organization or Personal) is returned in a
CategorizeDataobject. If the name is determined to be a personal name, the gender and country data is returned for the name, along with confidence and frequency values. - Compare
- Demonstrates comparing two names to produce a similarity score. Alternate parses are generated for each name, then each query parse is compared againts each data parse in order to determine the highest similarity score.
- Search
- Demonstrates searching a datalist. Configured datalists and search strategies are fetched
and listed (by default, this sample always uses the first search strategy). The names are prepared
for search using the
analyzeForSearch()method. Match results are returned inSearchMatchobjects.