PLP: Creating Synonyms §

To add a new Synonym rule, use the bottom half of the Synonym form.  

 

First, enter the word or phrase that you want to match. Then enter the synonym–that is, the data that should replace the word or phrase entered above.  

Now select the 'Match Flag' from the four choices available: 

  • 'All'–the word or phrase must match the complete MARC field/subfield  
  • 'Any'–the word or phrase can match any part, or substring, of the MARC field/subfield 
  • 'Left'–the match is anchored to the beginning of the MARC field/subfield1) 
  • 'Right'–the match is anchored to the end of the MARC field/subfield2) 

Finally, select the crosscheck where this synonym should be applied, then press the 'Add synonym' button. The word and the synonym will then be normalized, and a new rule will be added to the table above. 

The selections in the work area are 'sticky'–that means they wont disappear as soon as you add a synonym. Once you have added one synonym rule, it becomes quite easy to add others by just changing one or more selections and clicking the 'Add Synonym' button again. 

One exception to this are the two check boxes captioned 'Clear on Add'; when these are selected, the corresponding edit box will be cleared each time the Add button is pressed. These checkboxes are described in more detail in the section on using the 'Synonym Notepad' in MCU. 

Back To Top

Normalization of §

Its important to note that synonyms will only be applied to MARC data after it has been normalized. To see what a word or synonym will look like when normalized–before you save it–press the circular arrow button to the right of the Match Flags box.  

Also note that the normalization process for synonyms does not remove blank spaces as it does in other parts of the program. Although capitalization and punctuation is ignored, spacing is very important in a synonym rule. 

Back To Top

Selecting Crosschecks §

It is possible to select more than one crosscheck at the same time. When this is the case, pressing the 'Add Synonym' button will add one rule for each crosscheck selected. 

Unlike the Crosscheck Redirection rules, the crosschecks that can be selected are not dependent on the underling PLP config. For example, even if XAUTH is not defined for any primary key in your match rules, it can still be added to the synonym table for that config.  

On the other hand, synonym rules cannot be created for some crosschecks, even if they are defined in the underlying PLP config.  

First, a synonym rule cannot be defined for any crosscheck that evaluates to a number. These crosschecks are marked with a pound ('#') sign in the synonym work area: X010A, X020A, X028A, X300A, X300C, X4XXV, XDATE, XISSN, and XOCLC.  

Second, crosschecks that result from calculated values cannot be used in a synonym rule. These crosschecks are marked with an asterisk ('*') in the work area: X300E, XDVDR, and XLGPR. These crosschecks look at various MARC Fields and calculate a single value (typically True or False). 

Finally, for crosschecks that are derived from a coded value (XRTYP, XBLEV, XFORM, and XVTYP), the word or phrase, and the synonym, must each consist of only the number of characters in the coded value (which is usually one, except for XMTYP).  

Back To Top

Editing existing Synonyms §

Two fields can be changed directly in the synonym table view: Enabled, and Match Flag. These fields use pushbuttons (or radio buttons), and you can change them whenever you want.  

If you want to change any of the other fields (crosscheck, word/phrase, or synonym) you will have to delete the rule and create a new one. To Delete a rule from the table, click on the rule and then press <Ctrl> and <Delete> at the same time. 

You can quickly set the Enabled flag to either Yes or No for all of the rules in the table by clicking the respective option in the top menu bar (Enable All, Disable All).  

Back To Top

Copying Synonyms §

If you are starting a new config, and have other synonym rules you would like to use as a basis, click the 'Create from' menu item–the program will list all the other non-empty synonym tables, and you can pick one to populate your new config with. 

You can also add synonyms from another config to the one you are working on using the 'Add rules' menu item. Again, the program will list all the other non-empty synonym tables; when you pick one, the program will add all of the rules from that table to the current one.  

The 'Add rules' option is more like an 'Append To' option, whereas the 'Create from' option is more like a 'Replace' option. Note that when either of these two batch options are used, the program will check each rule being added and reject any duplicate synonym rules. A count of these rejected rules will pop-up when the batch operation concludes. 

The menu option called 'Add default' will add several default synonyms defined by TMQ to the synonym table.  

In fact, whenever you create a new config in PLP, these default synonym are added to the synonym table (so that the first time the table is displayed, instead of being empty, it will contain the default rules). If you then delete all of these default synonyms and save the empty table, then the next time you open the Synonym table the defaults will be added again. The only way around this behavior is to press 'Clear all', then add at least one synonym rule yourself before you save the table. 

Finally, you can delete all of the synonym rules in a table by pressing the 'Clear all' menu item. 

Advanced Synonym details 

That covers the basics of Synonyms.
 

For more details, including some examples on what to avoid when setting up a synonym rule, please click here

1) if you were using a regular expression, this would be expressed as: ^word
2) again, as a regular expression, this might look like: word$
plp/synonyms_using.txt · Last modified: 2013/04/27 09:09 (external edit)
Back to top
CC Attribution-Noncommercial-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed