Skip to content

Commit

Permalink
inital error correction rules
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherhammerly committed Jun 11, 2024
1 parent a9e9f46 commit 1e753ba
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
15 changes: 9 additions & 6 deletions tools/spellcheckers/editdist.default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@
a
b
c
č
d
e
f
g
h
i
î
ï
j
k
l
m
n
o
p
q
r
s
t
Expand All @@ -29,6 +27,7 @@ w
x
y
z
'
-
.
0
Expand All @@ -41,17 +40,21 @@ z
7
8
9
:

## Transition pairs + weight - section separator:
@@

## Transition pair specifications + weight:
a á 0.4
d t 15
t d 5
b p 15
p b 5
g k 15
k g 5

## Swaps. NB! Please note that these depend on the variable
## USE_SWAPS in Makefile.am in this directory. Also note that
## enabling swaps is computationally expensive. See note in
## Makefile.am.
## Change dh into hd with the weight 0.5:
d,h h,d 0.5
## d,h h,d 0.5
15 changes: 13 additions & 2 deletions tools/spellcheckers/strings.default.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# Add your error:correct string pairs here (not complete words, they have
# a separate file), followed by TAB and the weight for the edit operation:
#øø:öö 0.2
#ää:ææ 0.2

j:zh 5
s:sh 5
sh:s 5
z:zh 5
zh:z 5
o:oo 5
oo:o 5
a:aa 5
aa:a 5
i:ii 5
ii:i 5
tch:ch 1
4 changes: 3 additions & 1 deletion tools/spellcheckers/words.default.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Add complete words here as misspelling:correct followed by a TAB and the
# weight:
#jih:jïh 0.0

miigwich:miigwech 1
miigwetch:miigwech 1

0 comments on commit 1e753ba

Please sign in to comment.