Skip to content

Commit

Permalink
Update alternate words
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmab committed Dec 31, 2024
1 parent e03c69e commit 03d7be3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/parser/alternates.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ var alternateRequestWords = map[string]string{
"alphacheck": alphaCheck,
"alphachek": alphaCheck,
"arfachek": alphaCheck,
"buggydoke": bogeyDope,
"boggid": bogeyDope,
"pokido": bogeyDope,
"arfatcheck": alphaCheck,
"bobbiedope": bogeyDope,
"bobby doke": bogeyDope,
Expand Down
3 changes: 3 additions & 0 deletions pkg/parser/callsign.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ func ParsePilotCallsign(tx string) (callsign string, isValid bool) {
for token, replacement := range map[string]string{
"request": "",
"this is": "",
"on one": "11",
"want to": "12",
"tutu": "22",
"to 8": "28",
"free 1": "31",
} {
tx = strings.ReplaceAll(tx, token, replacement)
}
Expand Down

0 comments on commit 03d7be3

Please sign in to comment.