Variable: dictionary-default-popup-strategy
dictionary-default-popup-strategy is a customizable variable defined
in dictionary.el.gz.
Value
"exact"
Documentation
The default strategy for listing matching words within a popup window.
The following algorithms (defined by the dictd server) are supported by the choice value:
- Exact match
The found word exactly matches the searched word.
- Similar sounding
The found word sounds similar to the searched word. For this match type
the soundex algorithm defined by Donald E. Knuth is used. It will only
work with English words and the algorithm is not very reliable (i.e.,
the soundex algorithm is quite simple).
- Levenshtein distance one
The Levenshtein distance is defined as the number of insertions, deletions,
or replacements needed to get the searched word. This algorithm searches
for word where spelling mistakes are allowed. Levenshtein distance one
means there is either a deleted character, an inserted character, or a
modified one.
- User choice
Here you can enter any matching algorithm supported by your
dictionary server.
This variable was added, or its default value changed, in Emacs 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
(defcustom dictionary-default-popup-strategy
"exact"
"The default strategy for listing matching words within a popup window.
The following algorithms (defined by the dictd server) are supported
by the choice value:
- Exact match
The found word exactly matches the searched word.
- Similar sounding
The found word sounds similar to the searched word. For this match type
the soundex algorithm defined by Donald E. Knuth is used. It will only
work with English words and the algorithm is not very reliable (i.e.,
the soundex algorithm is quite simple).
- Levenshtein distance one
The Levenshtein distance is defined as the number of insertions, deletions,
or replacements needed to get the searched word. This algorithm searches
for word where spelling mistakes are allowed. Levenshtein distance one
means there is either a deleted character, an inserted character, or a
modified one.
- User choice
Here you can enter any matching algorithm supported by your
dictionary server."
:group 'dictionary
:type '(choice (const :tag "Exact match" "exact")
(const :tag "Similar sounding" "soundex")
(const :tag "Levenshtein distance one" "lev")
(string :tag "User choice"))
:version "28.1")