File: README.replacetable

package info (click to toggle)
myspell 1:3.0+pre3.1-24.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,228 kB
  • ctags: 436
  • sloc: cpp: 5,985; sh: 1,250; ansic: 1,176; makefile: 222; perl: 81
file content (25 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
We can define language-dependent phonetic information
in the affix file (.aff)  by a replacement table. With this 
table, MySpell can suggest the right forms for the typical 
faults of spelling when the incorrect form differs by more, 
than 1 letter from the right form.

Replacement table syntax:

REP [number_of_replacement_definitions]
REP [what] [replacement]
REP [what] [replacement]
...

For example a possible English replacement table definition
to handle misspelt consonants:

REP 8
REP f ph
REP ph f
REP f gh
REP gh f
REP j dg
REP dg j
REP k ch
REP ch k