Terminology Checker Add-on
Oxygen XML Editor offers an add-on that provides support for checking terminology. Once the add-on is installed, you can create a terminology file with a set of rules for each term (or sequence of characters) you want flagged. After referencing the custom file, Oxygen XML Editor will automatically highlight matched terms in the Author visual editing mode and offer some contextual menu actions.
To add this terminology checking functionality to Oxygen XML Editor, follow this procedure:
- Go to to open an add-on selection dialog box.
- Enter or paste https://www.oxygenxml.com/InstData/Addons/default/updateSite.xml in the Show add-ons from field or select it from the drop-down menu.
- Select the Terminology Checker add-on and click Next.
- Select the I accept all terms of the end-user license agreement option and click Finish.
- Restart the application.
Creating Custom Rules for the Terminology Checker
To create your own custom rules for the terminology checker, follow this procedure:
- Create a terminology file. There is a template available to help you get started in
the New
Document wizard. Click the
New button on the toolbar or select and search for the Terminology File template. Here is an example
of the structure for this type of
file:<incorrect-terms> <incorrect-term ignorecase="true"> <match>Oxygen</match> <suggestion></suggestion> <message>Product name should be inside a tag.</message> </incorrect-term> </incorrect-terms>Notes:- The
<incorrect-term>element must include a<match>element. - On the
<match>element, you can specify the@typeattribute with the valuescharacter,whole-words, orregular-expression. The default value iswhole-word, except when the matched term contains Japanese, Chinese, or Korean characters because Asian languages do not usually use spaces to separate words. Example:<incorrect-term> <match type="character">ing</match> <message>Progresive tense should not be allowed</message> </incorrect-term> - Each
<match>element has a@severityattribute that can be set to one of the valuesinfo,warning, orerror. Example:<incorrect-term severity="error"> <match>he</match> <message>Pronounts should be avoided.</message> </incorrect-term>
- The
<suggestion>element can be left blank or there can be one or more of them inside the<incorrect-term>element. It supports regular expressions grouping. - If you want to replace the match with an XML fragment, you can set the
@formatattribute on the<suggestion>element with the valuexml. For example:<incorrect-term ignorecase="true"> <match type="whole-word">Oxygen XML Editor</match> <suggestion format="xml"><ph keyref="oxygen"/></suggestion> <message>Replace all occurrences of product with key reference</message> </incorrect-term>
- The
<message>element is optional. If present, its content is displayed in a tooltip when you hover over a highlight. It supports regular expressions grouping. - The
@ignorecaseattribute specifies whether or not the match is case-sensitive.
- The
- Go to and in the Terminology Folder field, specify the folder where your terminology file is located.
- Click OK several times to apply the changes and close the preferences dialog box.
Using Vale Rules with the Terminology Checker
The Terminology Checker has partial support for applying custom Vale rules.
Supported Vale scopes: heading, table.header, table.cell, list, paragraph, code,strong,emphasis.
Supported Vale extension points: Existence, Substitution, Occurrence.
Working with the Terminology Checker
The Terminology Helper side view shows all problems found in the document. You can right-click each problem to apply possible fixes or to find out more details about it. The tooltip for each problem displays a custom message and more information (e.g. for Vale rules, it also displays the name of the Vale rule file that defines the rule). You can filter problems based on their severity, match, and message and the toolbar has actions to navigate between problems or to open the Terminology Checker preferences page.
- Replace with "…" - Replaces the currently highlighted match with the content
inside the
<suggestion>element. - Replace all with "…" - Replaces all instances of the highlighted match found in
the current document with the content inside the
<suggestion>element. - Correct all matching highlights - Replaces all highlighted matches (all matched
terms) within the document with the content inside the first
<suggestion>element from the terminology file.
The terminology checking can be disabled by clicking the
Show/Hide Terminology
Highlights toolbar button. The checker automatically skips space-preserve
elements such as codeblocks.
In the Oxygen XML Editor page, you can define the highlight colors to be used for each issue depending on its severity. You can also reference a folder that contains the terminology rules. This folder can contain other folders with terminology files or just the terminology files.