# Acronyms and abbreviations

Since version 4.30 DataparkSearch also support search fuzzying based on acronyms and abbreviation.

Acronyms files are installed into `etc/acronym` subdirectory of DataparkSearch installation.

To enable acronyms, add to `search.htm` search template commands like `Acronym <filename>`, e.g.:

    Acronym acronym/en.fido.acr
    Acronym acronym/en.acr

Filenames are relative to `etc` directory of DataparkSearch installation or absolute if begin with /

If you use `searchd`, add the same commands to `searchd.conf`.

You may create your own acronyms lists. As an example you may take the English acronyms file. In the beginning of the list please specify the following two commands:

    Language: en
    Charset:  us-ascii

- `Language` - standard (ISO 639) two-letter language abbreviation.

- `Charset` - any charset supported by DataparkSearch (see ).

Also, you can extend queries by special comments specifying regular expression modifications. E.g.:

    #* regex last "([0-9]{2})[- \.]?([0-9]{2})[- \.]?([0-9]{2})" "+78622$1$2$3"

This specify a transformation from widely used format of local phone numbers, 99-99-99, into canonical format, +78622XXXXXX. So the phone numbers become searchable regardless the format they were written. The `last` option here means that the process of regex application stops after applying this rule.

Please send your own acronym files to maxime@maxime.net.ru, if you want share its with other users.