Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions pkg/parser/bogeydope_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,31 @@ func TestParserBogeyDope(t *testing.T) {
"Boy Do",
"Vojidoji",
"Vaughi Do",
"broke it up.",
"Omidok.",
"WOKADO.",
"WOGIDOKE",
"BOID-OP.",
"POKETO.",
"Bobi-Dubba.",
"WOGUE IT UP!",
"BOGGINOP.",
"request baguette out.",
"request BUVIDO.",
"REQUEST, VOGUADOVE.",
"request 'BEGGIDO'!",
"request 'BEGITO'",
"WOGED UP.",
"request VEGADO.",
"request 'BEGGIE' 'DO'!",
"request Begged Out.",
"request PEGI-DOPE.",
"request PUBG-DOPE.",
"request POGIDU.",
"REQUEST, BOOGDOPY.",
"bodydope.",
"BROGITUP.",
"Bo-KIDO.",
}
for _, text := range simpleCases {
tc := parserTestCase{
Expand Down
6 changes: 6 additions & 0 deletions pkg/parser/radiocheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ func TestParserRadioCheck(t *testing.T) {
Callsign: "ford 1 1",
},
},
{
text: TestCallsign + ", cobra 21, COMCHACK.",
expected: &brevity.RadioCheckRequest{
Callsign: "cobra 2 1",
},
},
}
runParserTestCases(t, New(TestCallsign, []string{}, true), testCases, func(t *testing.T, test parserTestCase, request any) {
t.Helper()
Expand Down
26 changes: 26 additions & 0 deletions pkg/parser/replacements.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ var replacementLUT = map[string]string{
"arfa check": alphaCheck,
"arfachek": alphaCheck,
"arfatcheck": alphaCheck,
"baguette out": bogeyDope,
"baggy dope": bogeyDope,
"bakito": bogeyDope,
"begged out": bogeyDope,
"beggie do": bogeyDope,
"beggido": bogeyDope,
"begito": bogeyDope,
"bergido": bogeyDope,
"berkado": bogeyDope,
"bloggedoop": bogeyDope,
"bo i doke": bogeyDope,
"bo kido": bogeyDope,
"boado": bogeyDope,
"bodidoda": bogeyDope,
"boat be dope": bogeyDope,
Expand All @@ -32,6 +38,7 @@ var replacementLUT = map[string]string{
"bobby dope": bogeyDope,
"bobbydo": bogeyDope,
"bobi dop": bogeyDope,
"bobi dubba": bogeyDope,
"bobido": bogeyDope,
"bobito": bogeyDope,
"boby do": bogeyDope,
Expand All @@ -40,6 +47,8 @@ var replacementLUT = map[string]string{
"bochy do": bogeyDope,
"bochy": bogeyDope,
"bodhi": bogeyDope,
"bodydope": bogeyDope,
"boid op": bogeyDope,
"bohi": bogeyDope,
"bohy": bogeyDope,
"bo g": bogeyDope,
Expand All @@ -52,6 +61,7 @@ var replacementLUT = map[string]string{
"bogd": bogeyDope,
"bogdoge": bogeyDope,
"bogdope": bogeyDope,
"bogginop": bogeyDope,
"boged": bogeyDope,
"bogeder": bogeyDope,
"bogedop": bogeyDope,
Expand Down Expand Up @@ -113,6 +123,7 @@ var replacementLUT = map[string]string{
"bombdo": bogeyDope,
"bougie dough": bogeyDope,
"bougie": bogeyDope,
"boogdopy": bogeyDope,
"booby doo": bogeyDope,
"booby dop": bogeyDope,
"boobydope": bogeyDope,
Expand Down Expand Up @@ -141,6 +152,8 @@ var replacementLUT = map[string]string{
"bowido": bogeyDope,
"bowie dope": bogeyDope,
"boy do": bogeyDope,
"broke it up": bogeyDope,
"brogitup": bogeyDope,
"boy dope": bogeyDope,
"boyadop": bogeyDope,
"budgie": bogeyDope,
Expand Down Expand Up @@ -188,13 +201,15 @@ var replacementLUT = map[string]string{
"buke it up": bogeyDope,
"bulgie": bogeyDope,
"burgy": bogeyDope,
"buvido": bogeyDope,
"buvidu": bogeyDope,
"buzzy": bogeyDope,
"by vito": bogeyDope,
"checkin in": checkIn,
"checking in": checkIn,
"chicken": checkIn,
"com check": radioCheck,
"comchack": radioCheck,
"comcheck": radioCheck,
"come check": radioCheck,
"comes check": radioCheck,
Expand Down Expand Up @@ -238,6 +253,7 @@ var replacementLUT = map[string]string{
"mogito": bogeyDope,
"obey dope": bogeyDope,
"odi": bogeyDope,
"omidok": bogeyDope,
"og da": bogeyDope,
"og do": bogeyDope,
"og dope": bogeyDope,
Expand Down Expand Up @@ -277,19 +293,23 @@ var replacementLUT = map[string]string{
"pogido": bogeyDope,
"pogidop": bogeyDope,
"pogito": bogeyDope,
"pegi dope": bogeyDope,
"pogidu": bogeyDope,
"pogy": bogeyDope,
"poke it open": bogeyDope,
"poke it up": bogeyDope,
"pokedo": bogeyDope,
"pokedome": bogeyDope,
"poketop": bogeyDope,
"poketo": bogeyDope,
"pokido": bogeyDope,
"povey": bogeyDope,
"pugg it up": bogeyDope,
"puggido": bogeyDope,
"puggy dope": bogeyDope,
"pugi dope": bogeyDope,
"pugito": bogeyDope,
"pubg dope": bogeyDope,
"pugy dope": bogeyDope,
"pukido": bogeyDope,
"radiocheck": radioCheck,
Expand All @@ -312,6 +332,7 @@ var replacementLUT = map[string]string{
"trip wire": tripwire,
"vog it up": bogeyDope,
"vaughi": bogeyDope,
"vegado": bogeyDope,
"vogee": bogeyDope,
"vogie doe": bogeyDope,
"vogie": bogeyDope,
Expand All @@ -323,17 +344,22 @@ var replacementLUT = map[string]string{
"vogito": bogeyDope,
"vogue it up": bogeyDope,
"vogue": bogeyDope,
"voguadove": bogeyDope,
"voguy": bogeyDope,
"voji": bogeyDope,
"voki": bogeyDope,
"votigo": bogeyDope,
"warn me": tripwire,
"wajidoke": bogeyDope,
"wiggidope": bogeyDope,
"woged up": bogeyDope,
"wogidoke": bogeyDope,
"wogit up": bogeyDope,
"wogitop": bogeyDope,
"wogitup": bogeyDope,
"wokado": bogeyDope,
"wookitup": bogeyDope,
"wogue it up": bogeyDope,
"wugito": bogeyDope,
}

Expand Down
Loading