content_image/983255.jpg
## 11.3.5 Creating custom dictionaries for Lexical Analysis 

<img src='content_image/983255.jpg'>

Now that we have a basic Lexical Analysis and have identified syntax (sentences and parts of speech), we need to add customer dictionaries for identifying the tokens that are necessary for identifying customer complaints: Products, packages, and their attributes. 

ICA Studio provides tools for creating custom dictionary databases, adding entries and compiling into binary dictionaries that Lexical Analysis uses at runtime. 

Preferred practice:  The best resource for finding words and patterns is your collection data. It is always better to use dictionaries rather than using rules. Dictionaries are easier to maintain and expand, and also better for performance. 

## Creating an empty dictionary database 

The source of customer dictionaries is managed by a local database in the ICA Studio project. To create an empty dictionary database, follow these steps: 

1. In Studio Explorer pane, right-click the Resources   Dictionaries folder. Choose New   Dictionary Database . 

2. In the New Dictionary dialog, enter the dictionary name: Products . 

3. Click Next  twice. The Create Additional Database Columns dialog appears. 

4. Click Add  and the Database Column Definition dialog appears, as shown in Figure 11-14 on page 420. 

