This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.ini
78 lines (74 loc) · 3.1 KB
/
settings.ini
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
; Slight Misspeller v1.0.3
; Copyright (c) 2021 Adam Rumpf <adam-rumpf.github.io>
; Released under MIT License <github.com/adam-rumpf/slight-misspeller>
;
; The fields below can be manually edited to change the behavior of the
; misspelling algorithms in 'misspell.py'.
;
; [typo]
;
; Defines parameters for typographical misspelling (conducted after all
; phonological misspelling). All fields specify probabilities between 0.0 and
; 1.0 for each event occurring for any given character.
;
; Events delete_char, insert, and replace are mutually exclusive, and the sum
; of their probabilities must not exceed 1.0.
;
; In general, typographical misspelling consists of replacing characters with
; nearby characters on the keyboard in order to simulate mistyping.
;
; delete_space -- chance to delete any given whitespace character
; delete_char -- chance to delete any given non-whitespace character; mutually
; exclusive with insert and replace
; swap -- chance to swap any pair of adjacent characters during a final pass
; insert -- chance to insert an additional character before or after any given
; non-whitespace character (both equally likely); additional character
; chosen as a keyboard key adjacent to the current character; mutually
; exclusive with delete_char and replace
; replace -- chance to replace any given non-whitespace character with one
; next to it on the keyboard; mutually exclusive with delete_char and
; insert
;
; [phono]
;
; Defines parameters for phonological misspelling (conducted before
; typographical misspelling). All fields specify probabilities between 0.0 and
; 1.0 for each event occurring for any given character.
;
; Events delete_char, insert, and replace are mutually exclusive, and the sum
; of their probabilities must not exceed 1.0.
;
; In general, phonological misspelling consists of replacing characters with
; other 'valid' characters based on a rough estimate of where the character
; falls within the word's pronunciation (e.g. vowels replace vowels,
; consonants replace consonants). Certain letter groups may be treated as a
; single unit (e.g. "th", "ch", "qu"), and any replacements are prohibited
; from creating an unpronounceable substring, both of which are defined in the
; local "data/rules.ini" file.
;
; delete -- chance to delete any given character or character group; mutually
; exclusive with insert and replace
; insert -- chance to insert an additional valid character or character pair
; before or after any given character or group (both equally likely)
; replace -- chance to replace any given character or group with another valid
; character or group
; group -- chance to treat a pair of characters as a group, if they are one of
; the defined character groups in the data file
;
; [blacklist]
;
; Case-insensitive list of blacklisted words, each on a separate line.
; Blacklisted words are removed from the final output string after all
; misspelling procedures have completed.
[typo]
delete_space = 0.005
delete_char = 0.0075
swap = 0.0075
insert = 0.001
replace = 0.0025
[phono]
delete = 0.004
insert = 0.004
replace = 0.007
group = 0.75
[blacklist]