> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit the code of extraction rules

> Edit auto-generated code for named-entity search elements (Person, Organization, Address, Date, Money, etc.) in the NLP Extraction Rules activity.

Rules for the search elements that look for named entities, that is, **Person**, **Organization**, **Address**, **Location**, **Date**, **Duration**, and **Money**, can also be edited as code. When you create such an element and set up its properties in the **Properties** pane, the program will automatically generate code for these properties.

Click **Code** to review the auto-generated code and edit it if required (see Code syntax for Extraction Rules activity for NLP for the syntax).

<Note>
  If you make any changes to the auto-generated code, you will no longer be able to continue editing the properties of the element in the **Properties** pane. Click **Discard Changes in Code** if you want to continue editing the properties of the element in the **Properties** pane.
</Note>

The properties of the **Value from Dictionary**, **Value from Regular Expression**, and **Text** search elements can only be edited via **Properties**.
