harper-core 2.0.0

The language checker for developers.
Documentation
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
use crate::linting::tests::{
    assert_good_and_bad_suggestions, assert_lint_count, assert_no_lints, assert_suggestion_result,
};

use super::lint_group;

// 1:1 tests

// Ado

#[test]
fn corrects_further_ado() {
    assert_suggestion_result(
        "... but we finally hit a great spot, so without further adieu.",
        lint_group(),
        "... but we finally hit a great spot, so without further ado.",
    );
}

#[test]
fn corrects_much_ado() {
    assert_suggestion_result(
        "After much adieu this functionality is now available.",
        lint_group(),
        "After much ado this functionality is now available.",
    );
}

// Bollocks

#[test]
fn fix_complete_bullocks() {
    assert_suggestion_result(
        "why you think some of them are complete bullocks or would be a bad idea",
        lint_group(),
        "why you think some of them are complete bollocks or would be a bad idea",
    );
}

#[test]
fn fix_dogs() {
    assert_suggestion_result(
        "The cat's ass, priceless! I have to steal that one. My go to phrase is “The dog's bullocks.",
        lint_group(),
        "The cat's ass, priceless! I have to steal that one. My go to phrase is “The dog's bollocks.",
    );
}

#[test]
fn fix_dogs_no_apostrophe_bullocks() {
    assert_suggestion_result(
        "some dumb rubbish that i do not give a dogs bullocks about",
        lint_group(),
        "some dumb rubbish that i do not give a dogs bollocks about",
    );
}

#[test]
fn fix_is_bullocks() {
    assert_suggestion_result(
        "for me this is bullocks, when the same user can sudo rm -rf",
        lint_group(),
        "for me this is bollocks, when the same user can sudo rm -rf",
    );
}

#[test]
fn fix_its_bullocks() {
    assert_suggestion_result(
        "I'm too lazy to explain why, but I think it's bullocks.",
        lint_group(),
        "I'm too lazy to explain why, but I think it's bollocks.",
    );
}

#[test]
fn fix_its_no_apostrophe_bullocks() {
    assert_suggestion_result(
        "but lance, dont claim to be clean, because we all know its bullocks",
        lint_group(),
        "but lance, dont claim to be clean, because we all know its bollocks",
    );
}

#[test]
fn fix_such_bullocks() {
    assert_suggestion_result(
        "This is why numerology is such bullocks.",
        lint_group(),
        "This is why numerology is such bollocks.",
    );
}

#[test]
fn fix_thats_bullocks() {
    assert_suggestion_result(
        "Respectfully, that's bullocks.",
        lint_group(),
        "Respectfully, that's bollocks.",
    );
}

#[test]
fn fix_thats_no_apostrophe_bullocks() {
    assert_suggestion_result(
        "In CSS thats bullocks as directives have priority in the order they are defined.",
        lint_group(),
        "In CSS thats bollocks as directives have priority in the order they are defined.",
    );
}

#[test]
fn fix_total_bullocks() {
    assert_suggestion_result(
        "Pointing out to the audience that their gravity explanation is total bullocks would seem an ethical must as well.",
        lint_group(),
        "Pointing out to the audience that their gravity explanation is total bollocks would seem an ethical must as well.",
    );
}

#[test]
fn fix_utter_bullocks() {
    assert_suggestion_result(
        "what utter bullocks a self employed person will get £94 under corona virus crisis",
        lint_group(),
        "what utter bollocks a self employed person will get £94 under corona virus crisis",
    );
}

#[test]
fn fix_was_bullocks() {
    assert_suggestion_result(
        "a few years ago I thought that was bullocks",
        lint_group(),
        "a few years ago I thought that was bollocks",
    );
}

#[test]
fn fix_bullocks_exclamation() {
    assert_suggestion_result(
        "throw(new Error('Bullocks!')));",
        lint_group(),
        "throw(new Error('Bollocks!')));",
    );
}

#[test]
fn dont_flag_herd_of_bullocks() {
    assert_no_lints(
        "driven back (literally) by a herd of bullocks across the path",
        lint_group(),
    );
}

// ChampAtTheBit
#[test]
fn correct_chomp_at_the_bit() {
    assert_suggestion_result(
        "so other than rolling back to older drivers i might have to chomp at the bit for a while longer yet",
        lint_group(),
        "so other than rolling back to older drivers i might have to champ at the bit for a while longer yet",
    );
}

#[test]
fn correct_chomped_at_the_bit() {
    assert_suggestion_result(
        "I chomped at the bit, frustrated by my urge to go faster, while my husband chafed at what I thought was a moderate pace.",
        lint_group(),
        "I champed at the bit, frustrated by my urge to go faster, while my husband chafed at what I thought was a moderate pace.",
    );
}

#[test]
fn correct_chomping_at_the_bit() {
    assert_suggestion_result(
        "Checking in to see when the Windows install will be ready. I am chomping at the bit!",
        lint_group(),
        "Checking in to see when the Windows install will be ready. I am champing at the bit!",
    );
}

#[test]
fn correct_chomps_at_the_bit() {
    assert_suggestion_result(
        "nobody chomps at the bit to make sure these are maintained, current, complete, and error free",
        lint_group(),
        "nobody champs at the bit to make sure these are maintained, current, complete, and error free",
    );
}

// ClientOrServerSide

// -client's side-
#[test]
fn correct_clients_side() {
    assert_suggestion_result(
        "I want to debug this server-side as I cannot find out why the connection is being refused from the client's side.",
        lint_group(),
        "I want to debug this server-side as I cannot find out why the connection is being refused from the client-side.",
    );
}

// -server's side-
#[test]
fn correct_servers_side() {
    assert_suggestion_result(
        "A client-server model where the client can execute commands in a terminal on the server's side",
        lint_group(),
        "A client-server model where the client can execute commands in a terminal on the server-side",
    );
}

// CompulseToCompel

#[test]
fn correct_compulse() {
    assert_suggestion_result(
        "Play Store will soon compulse to use SDK 30 on any app updates , and it's mandatory to have SDK 30 for new apps.",
        lint_group(),
        "Play Store will soon compel to use SDK 30 on any app updates , and it's mandatory to have SDK 30 for new apps.",
    );
}

#[test]
fn correct_compulsed() {
    assert_suggestion_result(
        "Just alpha, but now i am compulsed to work 10.6 into the github actions and insane docker environment :)",
        lint_group(),
        "Just alpha, but now i am compelled to work 10.6 into the github actions and insane docker environment :)",
    );
}

#[test]
fn correct_compulses() {
    assert_suggestion_result(
        "Occasionally, a film comes along that compulses me to make a fan poster.",
        lint_group(),
        "Occasionally, a film comes along that compels me to make a fan poster.",
    );
}

#[test]
fn correct_compulsing() {
    assert_suggestion_result(
        "We have an button enabled to prompt user to download the app whenever we find difference in version number in our servlet war file and apk verision compulsing user to update.",
        lint_group(),
        "We have an button enabled to prompt user to download the app whenever we find difference in version number in our servlet war file and apk verision compelling user to update.",
    );
}

// ConfirmThat

#[test]
fn correct_conform_that() {
    assert_suggestion_result(
        "the WCAG requires every view of the page to conform that we move this",
        lint_group(),
        "the WCAG requires every view of the page to confirm that we move this",
    );
}

#[test]
fn corrects_conformed_that() {
    assert_suggestion_result(
        "I have conformed that works now.",
        lint_group(),
        "I have confirmed that works now.",
    );
}

#[test]
fn corrects_conforms_that() {
    assert_suggestion_result(
        "I conformed that with the correct configuration, this is working correctly.",
        lint_group(),
        "I confirmed that with the correct configuration, this is working correctly.",
    );
}

#[test]
#[ignore = "False positive not yet handled."]
fn dont_flag_conforming_that() {
    assert_lint_count(
        "is there any example of a case that isn't fully conforming that is supported today?",
        lint_group(),
        0,
    );
}

#[test]
fn corrects_conforming_that() {
    assert_suggestion_result(
        "Thanks for conforming that this issue is fixed in the latest version.",
        lint_group(),
        "Thanks for confirming that this issue is fixed in the latest version.",
    );
}

// DefiniteArticle

#[test]
fn corrects_definite_article() {
    assert_suggestion_result(
        "As for format of outputs: the spec defines the field as using the singular definitive article \"the\"",
        lint_group(),
        "As for format of outputs: the spec defines the field as using the singular definite article \"the\"",
    );
}

#[test]
#[ignore = "Title case capitalization problem causes this one to fail too."]
fn corrects_definite_articles_title_case() {
    assert_suggestion_result(
        "01 Definitive Articles: De or Het. Before starting more complicated topics in Dutch grammar, you should be aware of the articles.",
        lint_group(),
        "01 Definite Articles: De or Het. Before starting more complicated topics in Dutch grammar, you should be aware of the articles.",
    );
}

#[test]
fn corrects_definite_articles_lowercase() {
    assert_suggestion_result(
        ".. definitive articles -та /-ta/ and -те /-te/ (postfixed in Bulgarian).",
        lint_group(),
        ".. definite articles -та /-ta/ and -те /-te/ (postfixed in Bulgarian).",
    );
}

// DigestiveTract

#[test]
fn dont_flag_digestive_track() {
    assert_suggestion_result(
        "In infants less than a year old, because their digestive track is not finished developing yet",
        lint_group(),
        "In infants less than a year old, because their digestive tract is not finished developing yet",
    );
}

#[test]
fn corrects_digestive_tracks() {
    assert_suggestion_result(
        "The digestive tracks of mammals are complex and diverse, with each species having its own unique digestive system.",
        lint_group(),
        "The digestive tracts of mammals are complex and diverse, with each species having its own unique digestive system.",
    );
}

// Discuss
// -none-

// DoesOrDose

// -does not-
#[test]
fn corrects_dose_not() {
    assert_suggestion_result(
        "It dose not run windows ?",
        lint_group(),
        "It does not run windows ?",
    );
}

// -dose it true positive-
#[test]
#[ignore = "due to false positives this can't be fixed yet"]
fn corrects_dose_it() {
    assert_suggestion_result(
        "dose it support zh_cn ?",
        lint_group(),
        "does it support zh_cn ?",
    );
}

// -dose it- noun false positives

// it should be noted that (in an excessive dose) (it might have an opposite effect)
#[test]
#[ignore = "would be a false positive in a naive implementation"]
fn dont_flag_excessive_dose_it_might() {
    assert_lint_count(
        "it should be noted that in an excessive dose it might have an opposite effect",
        lint_group(),
        0,
    );
}

// When the person receives (a prescribed second dose) (it is not counted ttwice)
#[test]
#[ignore = "would be a false positive in a naive implementation"]
fn dont_flag_second_dose_it_is_not() {
    assert_lint_count(
        "When the person receives a prescribed second dose it is not counted ttwice",
        lint_group(),
        0,
    );
}

// (At that small a dose) (it was pleasent).
#[test]
#[ignore = "would be a false positive in a naive implementation"]
fn dont_flag_a_dose_it_was() {
    assert_lint_count("At that small a dose it was pleasent.", lint_group(), 0);
}

// I do not know (what dose) (it takes) to trip out, but I don't think I could stay awake to find out.
#[test]
#[ignore = "would be a false positive in a naive implementation"]
fn dont_flag_what_dose_it_takes() {
    assert_lint_count(
        "I do not know what dose it takes to trip out, but I don't think I could stay awake to find out.",
        lint_group(),
        0,
    );
}

// -dose it- verb false positives

#[test]
#[ignore = "would be a false positive in a naive implementation"]
fn dont_flag_to_dose_it() {
    assert_lint_count(
        "And then I have to re-add the salts back to it to dose it back up to drinkable.",
        lint_group(),
        0,
    );
}

#[test]
#[ignore = "would be a false positive in a naive implementation"]
fn dont_flag_dont_dose_it_too_high() {
    assert_lint_count(
        "So my conclusion is: don't dose it too high or it actually is dangerous and not pleasant at all",
        lint_group(),
        0,
    );
}

#[test]
#[ignore = "would be a false positive in a naive implementation"]
fn dont_flag_to_dose_it_off() {
    assert_lint_count(
        "the only solution the other hopefully-dominant-reasonable-adult-human mind can find, is to dose it off, hoping the drowsiness can keep the fear at bay",
        lint_group(),
        0,
    );
}

// -he/she/it does-
#[test]
fn corrects_he_does() {
    assert_suggestion_result(
        "This validate each and every field of your from with nice dotted red color warring for the user, incase he dose some mistakes.",
        lint_group(),
        "This validate each and every field of your from with nice dotted red color warring for the user, incase he does some mistakes.",
    );
}

#[test]
fn corrects_she_does() {
    assert_suggestion_result(
        "we wont agree on everything she dose thats what a real person would feel like",
        lint_group(),
        "we wont agree on everything she does thats what a real person would feel like",
    );
}

// -it does-
#[test]
fn corrects_it_dose() {
    assert_suggestion_result(
        "it dose work without WEBP enabled",
        lint_group(),
        "it does work without WEBP enabled",
    );
}

// -someone does-
#[test]
fn corrects_someone_dose() {
    assert_suggestion_result(
        "Hopefully someone dose, I'm not good at C programing....",
        lint_group(),
        "Hopefully someone does, I'm not good at C programing....",
    );
}

// -interrogatives-
#[test]
fn corrects_how_dose() {
    assert_suggestion_result(
        "How dose qsv-copy works?",
        lint_group(),
        "How does qsv-copy works?",
    );
}

#[test]
#[ignore = "false positive not yet detected"]
fn dont_fix_how_dose_false_positive() {
    assert_lint_count(
        "Work in progress exploration of how dose modifications throughout a trial can also induce bias in the exposure-response relationships.",
        lint_group(),
        0,
    );
}

#[test]
fn corrects_when_dose() {
    assert_suggestion_result(
        "When dose reusebale variable sync between device? #2634",
        lint_group(),
        "When does reusebale variable sync between device? #2634",
    );
}

#[test]
#[ignore = "false positive not yet detected"]
fn dont_fix_when_dose_false_positive() {
    assert_lint_count(
        "Should we remove the dose when dose has been applied",
        lint_group(),
        0,
    );
}

#[test]
fn corrects_where_dose() {
    assert_suggestion_result(
        "where dose the password store?",
        lint_group(),
        "where does the password store?",
    );
}

#[test]
#[ignore = "false positive not yet detected"]
fn dont_fix_where_dose_false_positive() {
    assert_lint_count(
        "added some better error handling for the weird case where dose files have no dose...",
        lint_group(),
        0,
    );
}

#[test]
fn corrects_who_dose() {
    assert_suggestion_result(
        "Who dose knows the problem?",
        lint_group(),
        "Who does knows the problem?",
    );
}

#[test]
fn corrects_why_dose() {
    assert_suggestion_result(
        "why dose the path is random ?",
        lint_group(),
        "why does the path is random ?",
    );
}

// Note: no false positive detected for 'why does'. Only true positives.

// ExpandArgument

#[test]
fn corrects_arg() {
    assert_suggestion_result(
        "but I cannot figure out how to flag an arg as required",
        lint_group(),
        "but I cannot figure out how to flag an argument as required",
    );
}

#[test]
fn corrects_args() {
    assert_suggestion_result(
        "but every test I've done shows args as being about 65% faster",
        lint_group(),
        "but every test I've done shows arguments as being about 65% faster",
    );
}

// ExpandDecl

#[test]
fn corrects_decl() {
    assert_suggestion_result(
        "Yeah, I agree a forward decl would be preferable in this case.",
        lint_group(),
        "Yeah, I agree a forward declaration would be preferable in this case.",
    );
}

#[test]
fn corrects_decls() {
    assert_suggestion_result(
        "Accessing type decls from pointer types",
        lint_group(),
        "Accessing type declarations from pointer types",
    );
}

// ExpandDependency
// -none-

// ExpandDereference

#[test]
fn expand_deref() {
    assert_suggestion_result(
        "Should raw pointer deref/projections have to be in-bounds?",
        lint_group(),
        "Should raw pointer dereference/projections have to be in-bounds?",
    );
}

#[test]
fn corrects_derefs() {
    assert_suggestion_result(
        "A contiguous-in-memory double-ended queue that derefs into a slice - gnzlbg/slice_deque.",
        lint_group(),
        "A contiguous-in-memory double-ended queue that dereferences into a slice - gnzlbg/slice_deque.",
    );
}

// ExpandParam

#[test]
fn corrects_param() {
    assert_suggestion_result(
        "If I use the following to set an endDate param with a default value",
        lint_group(),
        "If I use the following to set an endDate parameter with a default value",
    );
}

#[test]
fn corrects_params() {
    assert_suggestion_result(
        "the params are not loaded in the R environment when using the terminal",
        lint_group(),
        "the parameters are not loaded in the R environment when using the terminal",
    );
}

// ExpandPointer

fn correct_ptr() {
    assert_suggestion_result(
        "How else would you construct a slice from a ptr and a length?",
        lint_group(),
        "How else would you construct a slice from a pointer and a length?",
    );
}

fn correct_ptrs() {
    assert_suggestion_result(
        "FixedBufferAllocator.free not freeing ptrs",
        lint_group(),
        "FixedBufferAllocator.free not freeing pointers",
    );
}

// ExpandSpecification

// ExpandStandardInput
// -none-

// ExpandStandardOutput
// -none-

// ExplanationMark
#[test]
fn detect_explanation_mark_atomic() {
    assert_suggestion_result("explanation mark", lint_group(), "exclamation mark");
}

#[test]
fn detect_explanation_marks_atomic() {
    assert_suggestion_result("explanation marks", lint_group(), "exclamation marks");
}

#[test]
fn detect_explanation_mark_real_world() {
    assert_suggestion_result(
        "Note that circled explanation mark, question mark, plus and arrows may be significantly harder to distinguish than their uncircled variants.",
        lint_group(),
        "Note that circled exclamation mark, question mark, plus and arrows may be significantly harder to distinguish than their uncircled variants.",
    );
}

#[test]
fn detect_explanation_marks_real_world() {
    assert_suggestion_result(
        "this issue: html: properly handle explanation marks in comments",
        lint_group(),
        "this issue: html: properly handle exclamation marks in comments",
    );
}

#[test]
fn detect_explanation_point_atomic() {
    assert_suggestion_result("explanation point", lint_group(), "exclamation point");
}

#[test]
fn detect_explanation_point_real_world() {
    assert_suggestion_result(
        "js and makes an offhand mention that you can disable inbuilt plugin with an explanation point (e.g. !error ).",
        lint_group(),
        "js and makes an offhand mention that you can disable inbuilt plugin with an exclamation point (e.g. !error ).",
    );
}

// ExtendOrExtent

#[test]
fn correct_certain_extend() {
    assert_suggestion_result(
        "This is a PowerShell script to automate client pentests / checkups - at least to a certain extend.",
        lint_group(),
        "This is a PowerShell script to automate client pentests / checkups - at least to a certain extent.",
    );
}

#[test]
fn correct_to_the_extend() {
    assert_suggestion_result(
        "Our artifacts are carefully documented and well-structured to the extend that reuse is facilitated.",
        lint_group(),
        "Our artifacts are carefully documented and well-structured to the extent that reuse is facilitated.",
    );
}

#[test]
fn correct_to_some_extend() {
    assert_suggestion_result(
        "Hi, I'm new to Pydantic and to some extend python, and I have a question that I haven't been able to figure out from the Docs.",
        lint_group(),
        "Hi, I'm new to Pydantic and to some extent python, and I have a question that I haven't been able to figure out from the Docs.",
    );
}

#[test]
fn correct_to_an_extend() {
    assert_suggestion_result(
        "It mimics (to an extend) the way in which Chrome requests SSO cookies with the Windows 10 accounts extension.",
        lint_group(),
        "It mimics (to an extent) the way in which Chrome requests SSO cookies with the Windows 10 accounts extension.",
    );
}

// FlauntForFlout

#[test]
fn corrects_flaunt_the_rules() {
    assert_suggestion_result(
        "Some users flaunt the rules of punctuation.",
        lint_group(),
        "Some users flout the rules of punctuation.",
    );
}

#[test]
fn corrects_flaunted_the_law() {
    assert_suggestion_result(
        "He flaunted the law for personal gain.",
        lint_group(),
        "He flouted the law for personal gain.",
    );
}

#[test]
fn corrects_flaunting_authority() {
    assert_suggestion_result(
        "She was flaunting authority at every turn.",
        lint_group(),
        "She was flouting authority at every turn.",
    );
}

#[test]
fn allows_flaunt_wealth() {
    assert_no_lints("He likes to flaunt his wealth.", lint_group());
}

// FoamAtTheMouth

#[test]
fn correct_foam_out_the_mouth() {
    assert_suggestion_result(
        "and he gave him a drink that made him foam out the mouth and die",
        lint_group(),
        "and he gave him a drink that made him foam at the mouth and die",
    );
}

#[test]
fn correct_foamed_out_the_mouth() {
    assert_suggestion_result(
        "You can see in some shots they've foamed out the mouth, and it's apparent their poisoned.",
        lint_group(),
        "You can see in some shots they've foamed at the mouth, and it's apparent their poisoned.",
    );
}

#[test]
fn correct_foaming_out_the_mouth() {
    assert_suggestion_result(
        "choking or foaming out the mouth or something like that, leading up to death",
        lint_group(),
        "choking or foaming at the mouth or something like that, leading up to death",
    );
}

#[test]
fn correct_foams_out_the_mouth() {
    assert_suggestion_result(
        "Elaine can't swallow, foams out the mouth and Kramer says she has rabies just like his friend Bob Sacamano after she gets bit by the guy's dog",
        lint_group(),
        "Elaine can't swallow, foams at the mouth and Kramer says she has rabies just like his friend Bob Sacamano after she gets bit by the guy's dog",
    );
}

// FootTheBill

#[test]
fn correct_flip_the_bill() {
    assert_suggestion_result(
        "- SQL Compare (If the company will flip the bill)",
        lint_group(),
        "- SQL Compare (If the company will foot the bill)",
    );
}

#[test]
fn correct_flipped_the_bill() {
    assert_suggestion_result(
        "As a meetup we were extremely lucky that NOVI flipped the bill for our in-person events.",
        lint_group(),
        "As a meetup we were extremely lucky that NOVI footed the bill for our in-person events.",
    );
}

#[test]
fn correct_flipping_the_bill() {
    assert_suggestion_result(
        "for the simple reason that there were no multimillion dollar company flipping the bill",
        lint_group(),
        "for the simple reason that there were no multimillion dollar company footing the bill",
    );
}

#[test]
fn correct_flips_the_bill() {
    assert_suggestion_result(
        "There seems to be a perennial debate in Illinois between urbanites and rural folk about who really flips the bill.",
        lint_group(),
        "There seems to be a perennial debate in Illinois between urbanites and rural folk about who really foots the bill.",
    );
}

// GetUsedTo

//-get used of-
#[test]
fn corrects_get_used_of() {
    assert_suggestion_result(
        "I am following the examples in the documentation in order to get used of comets.",
        lint_group(),
        "I am following the examples in the documentation in order to get used to comets.",
    );
}

//-gets used of-
#[test]
fn corrects_gets_used_of() {
    assert_suggestion_result(
        "its like she gets used of her food and becomes spoiled",
        lint_group(),
        "its like she gets used to her food and becomes spoiled",
    );
}

//-getting used of-
#[test]
fn corrects_getting_used_of() {
    assert_suggestion_result(
        "Here you can find a guide to getting used of the most important methods of magum.",
        lint_group(),
        "Here you can find a guide to getting used to the most important methods of magum.",
    );
}

//-got used of-
#[test]
fn corrects_got_used_of() {
    assert_suggestion_result(
        "we users actually got used of such delays",
        lint_group(),
        "we users actually got used to such delays",
    );
}

//-gotten used of-
#[test]
fn corrects_gotten_used_of() {
    assert_suggestion_result(
        "The tutorial has indeed been of help, and I've gotten used of using Hull.",
        lint_group(),
        "The tutorial has indeed been of help, and I've gotten used to using Hull.",
    );
}

// GrindToAHalt

#[test]
fn corrects_grind_to_halt() {
    // Without this it will eventually grind to halt as it backs up upon itself
    assert_suggestion_result(
        "Without this it will eventually grind to halt as it backs up upon itself",
        lint_group(),
        "Without this it will eventually grind to a halt as it backs up upon itself",
    );
}

#[test]
#[ignore = "Fails due to how replace_with_matched_case works"]
fn corrects_grind_to_halt_title_case() {
    assert_suggestion_result(
        "Smart Search Tools Cause System to Grind to Halt",
        lint_group(),
        "Smart Search Tools Cause System to Grind to a Halt",
    );
}

#[test]
fn corrects_grinding_to_halt() {
    assert_suggestion_result(
        "app grinding to halt when loading many objects",
        lint_group(),
        "app grinding to a halt when loading many objects",
    );
}

#[test]
fn corrects_grinds_to_halt() {
    assert_suggestion_result(
        "If your machine grinds to halt due to memory oversubscription, you may want to try to set the MOLD_JOBS environment variable to 1",
        lint_group(),
        "If your machine grinds to a halt due to memory oversubscription, you may want to try to set the MOLD_JOBS environment variable to 1",
    );
}

#[test]
fn corrects_ground_to_halt() {
    assert_suggestion_result(
        "As you have probably guessed, my work on my fork has ground to halt.",
        lint_group(),
        "As you have probably guessed, my work on my fork has ground to a halt.",
    );
}

// HavePassed

#[test]
fn correct_has_past() {
    assert_suggestion_result(
        "Track the amount of time that has past since a point in time.",
        lint_group(),
        "Track the amount of time that has passed since a point in time.",
    );
}

#[test]
fn correct_have_past() {
    assert_suggestion_result(
        "Another 14+ days have past, any updates on this?",
        lint_group(),
        "Another 14+ days have passed, any updates on this?",
    );
}

#[test]
fn correct_had_past() {
    assert_suggestion_result(
        "Few days had past, so im starting to thinks there is a problem in my local version.",
        lint_group(),
        "Few days had passed, so im starting to thinks there is a problem in my local version.",
    );
}

#[test]
fn correct_having_past() {
    assert_suggestion_result(
        "Return to computer, with enough time having past for the computer to go to full sleep.",
        lint_group(),
        "Return to computer, with enough time having passed for the computer to go to full sleep.",
    );
}

// HitTheNailOnTheHead

#[test]
fn correct_hit_the_nail() {
    assert_suggestion_result(
        "Ahh, found it! You hit the nail in the head once again.",
        lint_group(),
        "Ahh, found it! You hit the nail on the head once again.",
    );
}

#[test]
fn correct_hits_the_nail() {
    assert_suggestion_result(
        "I'm not sure if this sentence hits the nail in the head",
        lint_group(),
        "I'm not sure if this sentence hits the nail on the head",
    );
}

#[test]
fn correct_hitting_the_nail() {
    assert_suggestion_result(
        "You are hitting the nail in the head of my issue with this game, too.",
        lint_group(),
        "You are hitting the nail on the head of my issue with this game, too.",
    );
}

#[test]
fn correct_hitted_the_nail() {
    assert_suggestion_result(
        "I mean, you just kinda hitted the nail in the head. You cannot do anything with this that you couldn't do in a Raspberry PI.",
        lint_group(),
        "I mean, you just kinda hitted the nail on the head. You cannot do anything with this that you couldn't do in a Raspberry PI.",
    );
}

// HomeInOn

#[test]
fn correct_hone_in_on() {
    assert_suggestion_result(
        "This way you can use an object detector algorithm to hone in on subjects and tell sam to only focus in certain areas when looking to extend ...",
        lint_group(),
        "This way you can use an object detector algorithm to home in on subjects and tell sam to only focus in certain areas when looking to extend ...",
    );
}

#[test]
fn correct_honing_in_on() {
    assert_suggestion_result(
        "I think I understand the syntax limitation you're honing in on.",
        lint_group(),
        "I think I understand the syntax limitation you're homing in on.",
    );
}

#[test]
fn correct_hones_in_on() {
    assert_suggestion_result(
        "[FEATURE] Add a magnet that hones in on mobs",
        lint_group(),
        "[FEATURE] Add a magnet that homes in on mobs",
    );
}

#[test]
fn correct_honed_in_on() {
    assert_suggestion_result(
        "But it took me quite a bit of faffing about checking things out before I honed in on the session as the problem and tried to dump out the ...",
        lint_group(),
        "But it took me quite a bit of faffing about checking things out before I homed in on the session as the problem and tried to dump out the ...",
    );
}

// InDetail

// -in details-
#[test]
fn in_detail_atomic() {
    assert_suggestion_result("in details", lint_group(), "in detail");
}

#[test]
fn in_detail_real_world() {
    assert_suggestion_result(
        "c++ - who can tell me \"*this pointer\" in details?",
        lint_group(),
        "c++ - who can tell me \"*this pointer\" in detail?",
    )
}

// -in more details-
#[test]
fn in_more_detail_atomic() {
    assert_suggestion_result("in more details", lint_group(), "in more detail");
}

#[test]
fn in_more_detail_real_world() {
    assert_suggestion_result(
        "Document the interface in more details · Issue #3 · owlbarn ...",
        lint_group(),
        "Document the interface in more detail · Issue #3 · owlbarn ...",
    );
}

// InvestIn

#[test]
fn corrects_invest_into() {
    assert_suggestion_result(
        "which represents the amount of money they want to invest into a particular deal.",
        lint_group(),
        "which represents the amount of money they want to invest in a particular deal.",
    );
}

#[test]
fn corrects_investing_into() {
    assert_suggestion_result(
        "Taking dividends in cash (rather than automatically re-investing into the originating fund) can help alleviate the need for rebalancing.",
        lint_group(),
        "Taking dividends in cash (rather than automatically re-investing in the originating fund) can help alleviate the need for rebalancing.",
    );
}

#[test]
fn corrects_invested_into() {
    assert_suggestion_result(
        "it's all automatically invested into a collection of loans that match the criteria that ...",
        lint_group(),
        "it's all automatically invested in a collection of loans that match the criteria that ...",
    );
}

#[test]
fn corrects_invests_into() {
    assert_suggestion_result(
        "If a user invests into the protocol first using USDC but afterward changing to DAI, ...",
        lint_group(),
        "If a user invests in the protocol first using USDC but afterward changing to DAI, ...",
    );
}

#[test]
fn corrects_investment_into() {
    assert_suggestion_result(
        "A $10,000 investment into the fund made on February 28, 1997 would have grown to a value of $42,650 at the end of the 20-year period.",
        lint_group(),
        "A $10,000 investment in the fund made on February 28, 1997 would have grown to a value of $42,650 at the end of the 20-year period.",
    );
}

// LayoutVerb

#[test]
fn corrects_layouted() {
    assert_suggestion_result(
        "only the views that neeed it will be measured and layouted when the superview changes",
        lint_group(),
        "only the views that neeed it will be measured and laid out when the superview changes",
    );
}

#[test]
fn corrects_layouting() {
    assert_suggestion_result(
        "An R package for layouting tables, using the S4 method",
        lint_group(),
        "An R package for laying out tables, using the S4 method",
    );
}

// LitotesDirectPositive

#[test]
fn litotes_not_uncommon_atomic() {
    assert_suggestion_result("not uncommon", lint_group(), "common");
}

#[test]
fn litotes_not_uncommon_sentence() {
    assert_suggestion_result(
        "It is not uncommon to see outages during storms.",
        lint_group(),
        "It is common to see outages during storms.",
    );
}

#[test]
fn litotes_not_unlikely() {
    assert_suggestion_result(
        "This outcome is not unlikely given the data.",
        lint_group(),
        "This outcome is likely given the data.",
    );
}

#[test]
fn litotes_not_insignificant() {
    assert_suggestion_result(
        "That is not insignificant progress.",
        lint_group(),
        "That is significant progress.",
    );
}

#[test]
fn litotes_more_preferable() {
    assert_suggestion_result(
        "Is it more preferable to use process.env.variable or env.parsed.variable?",
        lint_group(),
        "Is it preferable to use process.env.variable or env.parsed.variable?",
    );
}

// LookForwardTo

#[test]
fn fix_look_forward_for() {
    // I will mark this issue as an enhancement and will look forward for enrolling it.
    assert_suggestion_result(
        "I will mark this issue as an enhancement and will look forward for enrolling it.",
        lint_group(),
        "I will mark this issue as an enhancement and will look forward to enrolling it.",
    );
}

#[test]
fn fix_looked_forward_for() {
    assert_suggestion_result(
        "Looked forward for standalone components so much, please fix this.",
        lint_group(),
        "Looked forward to standalone components so much, please fix this.",
    );
}

#[test]
fn fix_looking_forward_for() {
    assert_suggestion_result(
        "Looking forward for Typed version of this stack navigation",
        lint_group(),
        "Looking forward to Typed version of this stack navigation",
    );
}

#[test]
fn fix_looks_forward_for() {
    assert_suggestion_result(
        "Please take this words as from one of your fans who looks forward for a great and interesting project :)",
        lint_group(),
        "Please take this words as from one of your fans who looks forward to a great and interesting project :)",
    );
}

// MakeDoWith

#[test]
fn corrects_make_due_with() {
    assert_suggestion_result(
        "For now, I can make due with a bash script I have",
        lint_group(),
        "For now, I can make do with a bash script I have",
    );
}

#[test]
fn corrects_made_due_with() {
    assert_suggestion_result(
        "I made due with using actions.push for now but will try to do a codepen soon",
        lint_group(),
        "I made do with using actions.push for now but will try to do a codepen soon",
    );
}

#[test]
fn corrects_makes_due_with() {
    assert_suggestion_result(
        "but the code makes due with what is available",
        lint_group(),
        "but the code makes do with what is available",
    );
}

#[test]
fn corrects_making_due_with() {
    assert_suggestion_result(
        "I've been making due with the testMultiple script I wrote above.",
        lint_group(),
        "I've been making do with the testMultiple script I wrote above.",
    );
}

// MakeSense

#[test]
fn fix_make_senses() {
    assert_suggestion_result(
        "some symbols make senses only if you have a certain keyboard",
        lint_group(),
        "some symbols make sense only if you have a certain keyboard",
    );
}

#[test]
fn fix_made_senses() {
    assert_suggestion_result(
        "Usually on the examples of matlab central I have found all with positive magnitude and made senses to me.",
        lint_group(),
        "Usually on the examples of matlab central I have found all with positive magnitude and made sense to me.",
    );
}

#[test]
fn fix_makes_senses() {
    assert_suggestion_result(
        "If it makes senses I can open a PR.",
        lint_group(),
        "If it makes sense I can open a PR.",
    );
}

#[test]
fn fix_making_senses() {
    assert_suggestion_result(
        "I appreciate you mentioned the two use cases, which are making senses for both.",
        lint_group(),
        "I appreciate you mentioned the two use cases, which are making sense for both.",
    );
}

// MootPoint

// -point is mute-
#[test]
fn point_is_moot() {
    assert_suggestion_result("Your point is mute.", lint_group(), "Your point is moot.");
}

// OperatingSystem

#[test]
fn operative_system() {
    assert_suggestion_result(
        "COS is a operative system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source.",
        lint_group(),
        "COS is a operating system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source.",
    );
}

#[test]
fn operative_systems() {
    assert_suggestion_result(
        "My dotfiles for my operative systems and other configurations.",
        lint_group(),
        "My dotfiles for my operating systems and other configurations.",
    );
}

// PassersBy
#[test]
fn correct_passerbys() {
    assert_suggestion_result(
        "For any passerbys, you may replace visibility: hidden/collapsed with: opacity: 0; pointer-events: none;.",
        lint_group(),
        "For any passersby, you may replace visibility: hidden/collapsed with: opacity: 0; pointer-events: none;.",
    );
}

#[test]
fn correct_passer_bys_hyphen() {
    assert_suggestion_result(
        "Is there any way for random willing passer-bys to help with this effort?",
        lint_group(),
        "Is there any way for random willing passers-by to help with this effort?",
    );
}

// PeekBehindTheCurtain

#[test]
fn fix_peak() {
    assert_suggestion_result(
        "Offer a peak behind the curtain of what I look for when baselining a software installation.",
        lint_group(),
        "Offer a peek behind the curtain of what I look for when baselining a software installation.",
    );
}

#[test]
fn fix_peaked() {
    assert_suggestion_result(
        "I peaked behind the curtain of the new Autodraw tool and noticed some expected similarities to what I saw in Quickdraw.",
        lint_group(),
        "I peeked behind the curtain of the new Autodraw tool and noticed some expected similarities to what I saw in Quickdraw.",
    );
}

#[test]
fn fix_peaking() {
    assert_suggestion_result(
        "I can see how peaking behind the curtain got me to where I am today.",
        lint_group(),
        "I can see how peeking behind the curtain got me to where I am today.",
    );
}

#[test]
fn fix_peaks() {
    assert_suggestion_result(
        "The Daily Vlog Series that peaks behind the curtain of an Entrepreneur's day to day life in 2016 building a business.",
        lint_group(),
        "The Daily Vlog Series that peeks behind the curtain of an Entrepreneur's day to day life in 2016 building a business.",
    );
}

// Piggyback
// -none-

// RedundantSuperlatives

#[test]
fn redundant_more_optimal() {
    assert_suggestion_result("Is this more optimal?", lint_group(), "Is this optimal?");
}

#[test]
fn redundant_most_ideal() {
    assert_suggestion_result(
        "This is the most ideal scenario.",
        lint_group(),
        "This is the ideal scenario.",
    );
}

// ResponsibilityFor

#[test]
fn fix_take() {
    assert_suggestion_result(
        "Is anyone wanting to step up and take responsibility of this library, or should I put it in EOL and redirect to another tool? ",
        lint_group(),
        "Is anyone wanting to step up and take responsibility for this library, or should I put it in EOL and redirect to another tool? ",
    );
}

#[test]
fn fix_taken() {
    assert_suggestion_result(
        "if it had only taken responsibility of the manifest/info additions and extensionsID it would have made our life easier",
        lint_group(),
        "if it had only taken responsibility for the manifest/info additions and extensionsID it would have made our life easier",
    );
}

#[test]
fn fix_takes() {
    assert_suggestion_result(
        "If I have a message that i want to encode, who takes responsibility of pointers?",
        lint_group(),
        "If I have a message that i want to encode, who takes responsibility for pointers?",
    );
}

#[test]
fn fix_taking() {
    assert_suggestion_result(
        "This issue is about taking responsibility of the feature area auto indentation and start solving the bugs in the feature area.",
        lint_group(),
        "This issue is about taking responsibility for the feature area auto indentation and start solving the bugs in the feature area.",
    );
}

#[test]
fn fix_took() {
    assert_suggestion_result(
        "If the driver took responsibility of the locking, it could let these HTTP calls happen in parallel",
        lint_group(),
        "If the driver took responsibility for the locking, it could let these HTTP calls happen in parallel",
    );
}

#[test]
fn fix_assume() {
    assert_suggestion_result(
        "it's a relatively big chunk of behavior to assume responsibility of",
        lint_group(),
        "it's a relatively big chunk of behavior to assume responsibility for",
    );
}

#[test]
fn fix_assumed() {
    assert_suggestion_result(
        "and assumed responsibility of project managing the transition of Barclays",
        lint_group(),
        "and assumed responsibility for project managing the transition of Barclays",
    );
}

#[test]
fn fix_assumes() {
    assert_suggestion_result(
        "It means that the core development team assumes responsibility of the module",
        lint_group(),
        "It means that the core development team assumes responsibility for the module",
    );
}

#[test]
fn fix_assuming() {
    assert_suggestion_result(
        "The point of extract is essentially that you're assuming responsibility of maintenance for that version of the formula.",
        lint_group(),
        "The point of extract is essentially that you're assuming responsibility for maintenance for that version of the formula.",
    );
}

#[test]
fn fix_claim() {
    assert_suggestion_result(
        "so it doesn't need to claim responsibility of the reappearing containers lifecycle",
        lint_group(),
        "so it doesn't need to claim responsibility for the reappearing containers lifecycle",
    );
}

#[test]
fn fix_claimed() {
    assert_suggestion_result(
        "a group called The Impact Team had claimed responsibility of the data breach",
        lint_group(),
        "a group called The Impact Team had claimed responsibility for the data breach",
    );
}

#[test]
fn fix_claiming() {
    assert_suggestion_result(
        "I feel that there should be some other way of claiming responsibility of the promise's continuation.",
        lint_group(),
        "I feel that there should be some other way of claiming responsibility for the promise's continuation.",
    );
}

#[test]
fn fix_claims() {
    assert_suggestion_result(
        "yet the Lord claims responsibility of those boundaries",
        lint_group(),
        "yet the Lord claims responsibility for those boundaries",
    );
}

// ScapeGoat

#[test]
fn fix_an_escape_goat() {
    assert_suggestion_result(
        "I see too many times the cable and ps thingy being used as an escape goat.",
        lint_group(),
        "I see too many times the cable and ps thingy being used as a scapegoat.",
    );
}

#[test]
fn fix_escape_goat() {
    assert_suggestion_result(
        "It helps shift the reason for the failure on to what the manager did not do (making them the escape goat when it fails).",
        lint_group(),
        "It helps shift the reason for the failure on to what the manager did not do (making them the scapegoat when it fails).",
    );
}

#[test]
fn fix_escape_goats() {
    assert_suggestion_result(
        "People might be using Americans as escape goats for this, but these mishearings are becoming as common as a bowl in a china shop!",
        lint_group(),
        "People might be using Americans as scapegoats for this, but these mishearings are becoming as common as a bowl in a china shop!",
    );
}

// SeamToSeem

//-seam to be-
#[test]
fn fix_seam_to_be() {
    assert_suggestion_result(
        "amdvlk is deprecated but my system still uses it as default and I can't seam to be able to change it.",
        lint_group(),
        "amdvlk is deprecated but my system still uses it as default and I can't seem to be able to change it.",
    );
}

//-seams to be-
fn fix_seams_to_be() {
    assert_suggestion_result(
        "Problem: Docker image is seriously broken and everything seams to be related to trivial things like creating directory or dumping key",
        lint_group(),
        "Problem: Docker image is seriously broken and everything seems to be related to trivial things like creating directory or dumping key",
    );
}

//-I seam-
#[test]
fn fix_i_seam() {
    assert_suggestion_result(
        "so now whatever i seam to try it doesnt work",
        lint_group(),
        "so now whatever i seem to try it doesnt work",
    );
}

//-we seam-
#[test]
fn fix_we_seam() {
    assert_suggestion_result(
        "using a 4G network we seam to get ICE messages mixing Ipv6 and Ipv4",
        lint_group(),
        "using a 4G network we seem to get ICE messages mixing Ipv6 and Ipv4",
    );
}

//-we-all-seam-
#[test]
fn fix_we_all_seam() {
    assert_suggestion_result(
        "if it is your own nation then we all seam to get the update",
        lint_group(),
        "if it is your own nation then we all seem to get the update",
    );
}

//-we-both-seam-
#[test]
// because we both seam to have enough for frivolous things
fn fix_we_both_seam() {
    assert_suggestion_result(
        "because we both seam to have enough for frivolous things",
        lint_group(),
        "because we both seem to have enough for frivolous things",
    );
}

//-you seam-
#[test]
fn fix_you_seam() {
    assert_suggestion_result(
        "Assigning you, since you seam to have already made the fix.",
        lint_group(),
        "Assigning you, since you seem to have already made the fix.",
    );
}

//-you-all-seam
#[test]
fn fix_you_all_seam() {
    assert_suggestion_result(
        "That's a good advice which you all seam to agree upon.",
        lint_group(),
        "That's a good advice which you all seem to agree upon.",
    );
}

//-you-both-seam
#[test]
fn fix_you_both_seam() {
    assert_suggestion_result(
        "since you both seam to like the game",
        lint_group(),
        "since you both seem to like the game",
    );
}

//-he seams-
#[test]
fn fix_he_seams() {
    assert_suggestion_result(
        "tagging @PedroTroller as he seams to still be active on this project.",
        lint_group(),
        "tagging @PedroTroller as he seems to still be active on this project.",
    );
}

//-she seams-
#[test]
fn fix_she_seams() {
    assert_suggestion_result(
        "Here is the exact timestamp where she seams to talk about exactly this -> video.",
        lint_group(),
        "Here is the exact timestamp where she seems to talk about exactly this -> video.",
    );
}

//-it seams-
#[test]
fn fix_it_seams() {
    assert_suggestion_result(
        "It seams i cannot use $tries and $timeout properties on my queued listener class?",
        lint_group(),
        "It seems i cannot use $tries and $timeout properties on my queued listener class?",
    );
}

//-they seam-
#[test]
fn fix_they_seam() {
    assert_suggestion_result(
        "Lets start with the \"not\" and \"and\" gates because they seam the easiest.",
        lint_group(),
        "Lets start with the \"not\" and \"and\" gates because they seem the easiest.",
    );
}

//-they all seam-
#[test]
fn fix_they_all_seam() {
    assert_suggestion_result(
        "I have tried the sum, product, max and min functions and they all seam to work.",
        lint_group(),
        "I have tried the sum, product, max and min functions and they all seem to work.",
    );
}

//-they-both-seam-
#[test]
fn fix_they_both_seam() {
    assert_suggestion_result(
        "It's probably cause they both seam to combine martial arts with animal instincts",
        lint_group(),
        "It's probably cause they both seem to combine martial arts with animal instincts",
    );
}

//-everything seams-
#[test]
fn fix_everything_seams() {
    assert_suggestion_result(
        "Note that if you try to slider the slider first to the right and then to the left, everything seams alright.",
        lint_group(),
        "Note that if you try to slider the slider first to the right and then to the left, everything seems alright.",
    );
}

//-everybody seams-
#[test]
fn fix_everybody_seams() {
    assert_suggestion_result(
        "I'm currently a little disappointed because everybody seams to care only about the Rails framework",
        lint_group(),
        "I'm currently a little disappointed because everybody seems to care only about the Rails framework",
    );
}

//-everyone seams-
#[test]
fn fix_everyone_seams() {
    assert_suggestion_result(
        "everyone seams to use the editor now a days plus there is a tun of extensions available",
        lint_group(),
        "everyone seems to use the editor now a days plus there is a tun of extensions available",
    );
}

// SubjunctiveWasToWere

// -if only there was-
#[test]
fn if_only_there_was() {
    assert_suggestion_result(
        "if only there was an endpoint do to so",
        lint_group(),
        "if only there were an endpoint do to so",
    );
}

// -if only I-
#[test]
fn if_only_i_was() {
    assert_suggestion_result(
        "Oh If only I was that clever !!",
        lint_group(),
        "Oh If only I were that clever !!",
    );
}

// -if only he-
#[test]
fn if_only_he_was() {
    assert_suggestion_result(
        "If only he was kind enough to attempt to contact me in private first",
        lint_group(),
        "If only he were kind enough to attempt to contact me in private first",
    );
}

// -if only she-
#[test]
fn if_only_she_was() {
    assert_suggestion_result(
        "If only she was right.",
        lint_group(),
        "If only she were right.",
    );
}

// -it-
#[test]
fn if_only_it_was() {
    assert_suggestion_result(
        "if only it was accessible via USB connection - hint hint",
        lint_group(),
        "if only it were accessible via USB connection - hint hint",
    );
}

// -I wish there was-
#[test]
fn i_wish_there_was() {
    assert_suggestion_result(
        "I wish there was a keyboard shortcut or something that was \"bring back the suggestion you just made in the last 3 seconds\".",
        lint_group(),
        "I wish there were a keyboard shortcut or something that was \"bring back the suggestion you just made in the last 3 seconds\".",
    );
}

// -I wish I was-
#[test]
fn i_wish_i_was() {
    assert_suggestion_result(
        "I wish I was as smart as I think I am.",
        lint_group(),
        "I wish I were as smart as I think I am.",
    );
}

// -I wish he was-
#[test]
fn i_wish_he_was() {
    assert_suggestion_result(
        "However I wish he was that smart about ARM chips present in the current mobile devices.",
        lint_group(),
        "However I wish he were that smart about ARM chips present in the current mobile devices.",
    );
}

// -I wish she was-
#[test]
fn i_wish_she_was() {
    assert_suggestion_result(
        "I wish she was more accepting of her own interests.",
        lint_group(),
        "I wish she were more accepting of her own interests.",
    );
}

// -I wish it was-
#[test]
fn i_wish_it_was() {
    assert_suggestion_result(
        "but I wish it was more friendly to existing ecosystems",
        lint_group(),
        "but I wish it were more friendly to existing ecosystems",
    );
}

// UseToUsedTo

#[test]
fn corrects_getting_use_to() {
    assert_suggestion_result(
        "I'm getting use to it slowly.",
        lint_group(),
        "I'm getting used to it slowly.",
    );
}

#[test]
fn corrects_are_use_to() {
    assert_suggestion_result(
        "If you are use to Ubuntu, then the way sudo works should not be strange.",
        lint_group(),
        "If you are used to Ubuntu, then the way sudo works should not be strange.",
    );
}

#[test]
fn corrects_im_use_to() {
    assert_suggestion_result(
        "I'm use to doing a lot of work.",
        lint_group(),
        "I'm used to doing a lot of work.",
    );
}

#[test]
fn allows_use_to_as_verb() {
    assert_no_lints("This is the editor I use to write code.", lint_group());
}

#[test]
fn allows_used_to() {
    assert_no_lints("I used to develop with objects in JS.", lint_group());
}

// WreakHavoc

#[test]
fn fix_wreck_havoc() {
    assert_suggestion_result(
        "Tables with a \".\" in the name wreck havoc with the system",
        lint_group(),
        "Tables with a \".\" in the name wreak havoc with the system",
    );
}

#[test]
fn fix_wrecked_havoc() {
    assert_suggestion_result(
        "It would have been some weird local configuration of LO that wrecked havoc.",
        lint_group(),
        "It would have been some weird local configuration of LO that wreaked havoc.",
    );
}

#[test]
fn fix_wrecking_havoc() {
    assert_suggestion_result(
        "Multi-line edit is wrecking havoc with indention",
        lint_group(),
        "Multi-line edit is wreaking havoc with indention",
    );
}

#[test]
fn fix_wrecks_havoc() {
    assert_suggestion_result(
        "Small POC using rust with ptrace that wrecks havoc on msync",
        lint_group(),
        "Small POC using rust with ptrace that wreaks havoc on msync",
    );
}

// VerseAsVerb

#[test]
fn corrects_verse_against() {
    assert_suggestion_result(
        "A game of Morra, with 3 different AI you can verse against.",
        lint_group(),
        "A game of Morra, with 3 different AI you can play against.",
    );
}

#[test]
fn corrects_versing_against() {
    assert_suggestion_result(
        "This will help when you are versing against a particular boss.",
        lint_group(),
        "This will help when you are playing against a particular boss.",
    );
}

#[test]
fn corrects_verse_me() {
    assert_suggestion_result(
        "Come verse me in this game.",
        lint_group(),
        "Come play me in this game.",
    );
}

#[test]
fn allows_versus() {
    assert_no_lints("It was red versus blue in the finals.", lint_group());
}

// WroteToRote

#[test]
fn fix_by_wrote() {
    assert_suggestion_result(
        "Until one repeats and learns a fact by wrote it is the picture that sustains us.",
        lint_group(),
        "Until one repeats and learns a fact by rote it is the picture that sustains us.",
    );
}

#[test]
fn fix_by_wrote_hyphen() {
    assert_suggestion_result(
        "This specification may then be translated into a recursive-decent parser almost by-wrote.",
        lint_group(),
        "This specification may then be translated into a recursive-decent parser almost by-rote.",
    );
}

#[test]
fn fix_wrote_learning() {
    assert_suggestion_result(
        "I found that what turned me off math class was that teachers encouraged wrote learning instead of understanding.",
        lint_group(),
        "I found that what turned me off math class was that teachers encouraged rote learning instead of understanding.",
    );
}

#[test]
fn fix_wrote_memorisation() {
    assert_suggestion_result(
        "Not much of a wrote memorisation kind of guy, so I preferred to commit them to memory by framing them in the context of a paragraph.",
        lint_group(),
        "Not much of a rote memorisation kind of guy, so I preferred to commit them to memory by framing them in the context of a paragraph.",
    );
}

#[test]
fn fix_wrote_memorisation_hyphen() {
    assert_suggestion_result(
        "I find it helps me retain information much better and for longer compared to when I just blindly did wrote-memorisation.",
        lint_group(),
        "I find it helps me retain information much better and for longer compared to when I just blindly did rote-memorisation.",
    );
}

#[test]
fn fix_wrote_memorization() {
    assert_suggestion_result(
        "Outside websites are also no-go, exacerbating the need for wrote memorization.",
        lint_group(),
        "Outside websites are also no-go, exacerbating the need for rote memorization.",
    );
}

#[test]
fn fix_wrote_memorization_hyphen() {
    assert_suggestion_result(
        "The voicings was the biggest game-changer for me, coming from a wrote-memorization type classical piano background.",
        lint_group(),
        "The voicings was the biggest game-changer for me, coming from a rote-memorization type classical piano background.",
    );
}

#[test]
fn fix_wrote_memorizing() {
    assert_suggestion_result(
        "I have never been good at wrote memorizing abbreviations, initialisms, or acronyms.",
        lint_group(),
        "I have never been good at rote memorizing abbreviations, initialisms, or acronyms.",
    );
}

// Many to many tests

// AwaitFor

#[test]
fn correct_awaits_for() {
    assert_good_and_bad_suggestions(
        "Headless mode awaits for requested user feedback without showing any text for what that feedback should be",
        lint_group(),
        &[
            "Headless mode awaits requested user feedback without showing any text for what that feedback should be",
            "Headless mode waits for requested user feedback without showing any text for what that feedback should be",
        ],
        &[],
    );
}

#[test]
fn correct_awaiting_for() {
    assert_good_and_bad_suggestions(
        "gpg import fails awaiting for prompt answer",
        lint_group(),
        &[
            "gpg import fails waiting for prompt answer",
            "gpg import fails awaiting prompt answer",
        ],
        &[],
    );
}

#[test]
fn correct_await_for() {
    assert_good_and_bad_suggestions(
        "I still await for a college course on \"Followership 101\"",
        lint_group(),
        &[
            "I still wait for a college course on \"Followership 101\"",
            "I still await a college course on \"Followership 101\"",
        ],
        &[],
    );
}

#[test]
fn correct_awaited_for() {
    assert_good_and_bad_suggestions(
        "I have long awaited for the rise of the Dagoat agenda, and it is glorious.",
        lint_group(),
        &[
            "I have long awaited the rise of the Dagoat agenda, and it is glorious.",
            "I have long waited for the rise of the Dagoat agenda, and it is glorious.",
        ],
        &[],
    );
}

// CommitmentTo

#[test]
fn singular_towards() {
    assert_suggestion_result(
        "the platform's focus on multimedia projects and VideoLAN's long history of commitment towards free and open multimedia",
        lint_group(),
        "the platform's focus on multimedia projects and VideoLAN's long history of commitment to free and open multimedia",
    );
}

#[test]
fn plural_towards() {
    assert_suggestion_result(
        "the signer may express multiple commitments towards the data objects",
        lint_group(),
        "the signer may express multiple commitments to the data objects",
    );
}

#[test]
fn singular_toward() {
    assert_suggestion_result(
        "This document outlines the current level of commitment toward Linux distributions and packaging formats.",
        lint_group(),
        "This document outlines the current level of commitment to Linux distributions and packaging formats.",
    );
}

#[test]
fn plural_toward() {
    assert_suggestion_result(
        "... and are expected to inform parties in updating their commitments toward the Paris Agreement",
        lint_group(),
        "... and are expected to inform parties in updating their commitments to the Paris Agreement",
    );
}

// Copyright

#[test]
fn copywritten() {
    assert_suggestion_result(
        "Including digital copies of copywritten artwork with the project isn't advised.",
        lint_group(),
        "Including digital copies of copyrighted artwork with the project isn't advised.",
    );
}

#[test]
fn copywrites() {
    assert_suggestion_result(
        "Code is 99% copy/pasted from OpenSSH with an attempt to retain all copywrites",
        lint_group(),
        "Code is 99% copy/pasted from OpenSSH with an attempt to retain all copyrights",
    );
}

#[test]
fn copywrited() {
    assert_suggestion_result(
        "Proprietary copywrited code",
        lint_group(),
        "Proprietary copyrighted code",
    );
}

#[test]
fn copywrited_all_caps() {
    assert_suggestion_result(
        "URLS MAY CONTAIN COPYWRITED MATERIAL",
        lint_group(),
        "URLS MAY CONTAIN COPYRIGHTED MATERIAL",
    );
}

#[test]
fn copywrote() {
    assert_suggestion_result(
        "How do you find out if someone copywrote a movie",
        lint_group(),
        "How do you find out if someone copyrighted a movie",
    );
}

// DateBackFrom

#[test]
fn corrects_date_back_from() {
    assert_good_and_bad_suggestions(
        "There are too many open issues that date back from 4 years ago.",
        lint_group(),
        &[
            "There are too many open issues that date from 4 years ago.",
            "There are too many open issues that date back to 4 years ago.",
        ],
        &[],
    );
}

#[test]
fn corrects_dates_back_from() {
    assert_good_and_bad_suggestions(
        "This code dates back from 2014.",
        lint_group(),
        &[
            "This code dates from 2014.",
            "This code dates back to 2014.",
        ],
        &[],
    );
}

#[test]
fn allows_date_back_to() {
    assert_no_lints(
        "These scripts date back to when Perl was popular.",
        lint_group(),
    );
}

// Note: "the date back from" and "get dates back from" are known false
// positives where "date" is a noun (retrieving data). Phrase set matching
// cannot distinguish these from the verb form. See issue #2864.

// DoubleEdgedSword

#[test]
fn correct_double_edge_hyphen() {
    assert_suggestion_result(
        "I thought the global defaultTranslationValues was potentially a double-edge sword as it also obfuscates the full set of values",
        lint_group(),
        "I thought the global defaultTranslationValues was potentially a double-edged sword as it also obfuscates the full set of values",
    );
}

#[test]
fn correct_double_edge_space() {
    assert_suggestion_result(
        "It becomes a double edge sword when it should not be used in cases like this.",
        lint_group(),
        "It becomes a double-edged sword when it should not be used in cases like this.",
    );
}

#[test]
fn correct_double_edge_space_plural() {
    assert_suggestion_result(
        "Wake locks are really double edge swords.",
        lint_group(),
        "Wake locks are really double-edged swords.",
    );
}

#[test]
fn correct_double_edged_space() {
    assert_suggestion_result(
        "Use case. currently OPTIMIZE is a double edged sword and potentially a very dangerous tool to use.",
        lint_group(),
        "Use case. currently OPTIMIZE is a double-edged sword and potentially a very dangerous tool to use.",
    );
}

#[test]
fn correct_double_edged_space_plural() {
    assert_suggestion_result(
        "Change: Ambushers and Crusaders now protect their targets too, making them double edged swords",
        lint_group(),
        "Change: Ambushers and Crusaders now protect their targets too, making them double-edged swords",
    );
}

// ExpandAlloc

#[test]
fn corrects_allocs() {
    assert_suggestion_result(
        "cmd/compile: avoid allocs by better tracking of literals for interface conversions and make",
        lint_group(),
        "cmd/compile: avoid allocations by better tracking of literals for interface conversions and make",
    );
}

#[test]
fn expand_alloc() {
    assert_suggestion_result(
        "Used to find system libraries that alloc RWX regions on load.",
        lint_group(),
        "Used to find system libraries that allocate RWX regions on load.",
    );
}

// Expat

#[test]
fn correct_ex_pat_hyphen() {
    assert_suggestion_result(
        "It seems ex-pat means the person will be in a foreign country temporarily",
        lint_group(),
        "It seems expat means the person will be in a foreign country temporarily",
    );
}

#[test]
fn correct_ex_pats_hyphen() {
    assert_suggestion_result(
        "So, it might be correct to call most Brits ex-pats.",
        lint_group(),
        "So, it might be correct to call most Brits expats.",
    );
}

#[test]
fn correct_ex_pat_space() {
    assert_suggestion_result(
        "For me, the term ex pat embodies the exquisite hypocrisy of certain people feeling entitled",
        lint_group(),
        "For me, the term expat embodies the exquisite hypocrisy of certain people feeling entitled",
    );
}

#[test]
#[ignore = "replace_with_match_case results in ExPats"]
fn correct_ex_pats_space() {
    assert_suggestion_result(
        "Why are Brits who emigrate \"Ex Pats\" but people who come here \"immigrants\"?",
        lint_group(),
        "Why are Brits who emigrate \"Expats\" but people who come here \"immigrants\"?",
    );
}

// Expatriate

#[test]
fn correct_expatriot() {
    assert_suggestion_result(
        "Another expatriot of the era, James Joyce, also followed Papa's writing and drinking schedule.",
        lint_group(),
        "Another expatriate of the era, James Joyce, also followed Papa's writing and drinking schedule.",
    );
}

#[test]
fn correct_expatriots() {
    assert_suggestion_result(
        "Expatriots, upon discovering the delightful nuances of Dutch pronunciation, often find themselves in stitches.",
        lint_group(),
        "Expatriates, upon discovering the delightful nuances of Dutch pronunciation, often find themselves in stitches.",
    );
}

#[test]
fn correct_ex_patriot_hyphen() {
    assert_suggestion_result(
        "Then I added we should all be using the word 移民 immigrant, not ex-patriot, not 外国人 gaikokujin, and definitely not 外人 gaijin",
        lint_group(),
        "Then I added we should all be using the word 移民 immigrant, not expatriate, not 外国人 gaikokujin, and definitely not 外人 gaijin",
    );
}

#[test]
fn correct_ex_patriots_hyphen() {
    assert_suggestion_result(
        "Ex-patriots who move to Hong Kong to seek greener pastures and to experience a new culture seem to bring their own cultural baggage with them.",
        lint_group(),
        "Expatriates who move to Hong Kong to seek greener pastures and to experience a new culture seem to bring their own cultural baggage with them.",
    );
}

// GetRidOf

#[test]
fn get_rid_off() {
    assert_suggestion_result(
        "Please bump axios version to get rid off npm warning #624",
        lint_group(),
        "Please bump axios version to get rid of npm warning #624",
    );
}

#[test]
fn gets_rid_off() {
    assert_suggestion_result(
        "Adding at as a runtime dependency gets rid off that error",
        lint_group(),
        "Adding at as a runtime dependency gets rid of that error",
    );
}

#[test]
fn getting_rid_off() {
    assert_suggestion_result(
        "getting rid off of all the complexity of the different accesses method of API service providers",
        lint_group(),
        "getting rid of of all the complexity of the different accesses method of API service providers",
    );
}

#[test]
fn got_rid_off() {
    assert_suggestion_result(
        "For now we got rid off circular deps in model tree structure and it's API.",
        lint_group(),
        "For now we got rid of circular dependencies in model tree structure and it's API.",
    );
}

#[test]
fn gotten_rid_off() {
    assert_suggestion_result(
        "The baX variable thingy I have gotten rid off, that was due to a bad character in the encryption key.",
        lint_group(),
        "The baX variable thingy I have gotten rid of, that was due to a bad character in the encryption key.",
    );
}

#[test]
fn get_ride_of() {
    assert_suggestion_result(
        "Get ride of \"WARNING Deprecated: markdown_github. Use gfm\"",
        lint_group(),
        "Get rid of \"WARNING Deprecated: markdown_github. Use gfm\"",
    );
}

#[test]
fn get_ride_off() {
    assert_suggestion_result(
        "This exact hack was what I trying to get ride off. ",
        lint_group(),
        "This exact hack was what I trying to get rid of. ",
    );
}

#[test]
fn getting_ride_of() {
    assert_suggestion_result(
        "If you have any idea how to fix this without getting ride of bootstrap I would be thankfull.",
        lint_group(),
        "If you have any idea how to fix this without getting rid of bootstrap I would be thankfull.",
    );
}

#[test]
fn gets_ride_of() {
    assert_suggestion_result(
        ".. gets ride of a central back-end/server and eliminates all the risks associated to it.",
        lint_group(),
        ".. gets rid of a central back-end/server and eliminates all the risks associated to it.",
    );
}

#[test]
fn gotten_ride_of() {
    assert_suggestion_result(
        "I have gotten ride of the react-table and everything works just fine.",
        lint_group(),
        "I have gotten rid of the react-table and everything works just fine.",
    );
}

#[test]
fn got_ride_of() {
    assert_suggestion_result(
        "I had to adjust the labels on the free version because you guys got ride of ...",
        lint_group(),
        "I had to adjust the labels on the free version because you guys got rid of ...",
    );
}

// HolyWar

#[test]
#[ignore = "Known failure due to replace_with_match_case working by character index"]
fn correct_holy_war() {
    assert_suggestion_result(
        "I know it is Holly War about idempotent in HTTP and DELETE",
        lint_group(),
        "I know it is Holy War about idempotent in HTTP and DELETE",
    );
}

#[test]
fn correct_holly_wars() {
    assert_suggestion_result(
        "Anyway I'm not starting some holly wars about this point.",
        lint_group(),
        "Anyway I'm not starting some holy wars about this point.",
    );
}

// HowItLooksLike

#[test]
fn correct_how_it_looks_like_1() {
    assert_suggestion_result(
        "And here is how it looks like: As you can see, there is no real difference in the diagram itself.",
        lint_group(),
        "And here is how it looks: As you can see, there is no real difference in the diagram itself.",
    );
}

#[test]
fn correct_how_it_looks_like_2() {
    assert_suggestion_result(
        "This is how it looks like when run from Windows PowerShell or Cmd: image.",
        lint_group(),
        "This is what it looks like when run from Windows PowerShell or Cmd: image.",
    );
}

#[test]
fn correct_how_they_look_like_1() {
    assert_suggestion_result(
        "This is a sample project illustrating a demo of how to use the new Material 3 components and how they look like.",
        lint_group(),
        "This is a sample project illustrating a demo of how to use the new Material 3 components and how they look.",
    );
}

#[test]
fn correct_how_they_look_like_2() {
    assert_suggestion_result(
        "So for now I'll just leave this issue here of how they look like in the XLSX",
        lint_group(),
        "So for now I'll just leave this issue here of what they look like in the XLSX",
    );
}

#[test]
fn correct_how_they_looks_like_1() {
    assert_suggestion_result(
        "Here I demonstrate how disney works and how they looks like Don't miss to give me a star.",
        lint_group(),
        "Here I demonstrate how disney works and how they look Don't miss to give me a star.",
    );
}

#[test]
fn correct_how_they_looks_like_2() {
    assert_suggestion_result(
        "You can check how they looks like on Android app by this command:",
        lint_group(),
        "You can check what they look like on Android app by this command:",
    );
}

#[test]
fn correct_how_she_looks_like_1() {
    assert_suggestion_result(
        "You all know how she looks like.",
        lint_group(),
        "You all know how she looks.",
    );
}

#[test]
fn correct_how_he_looks_like_2() {
    assert_suggestion_result(
        "Here's how he looks like, when he's supposed to just look like his old fatui design.",
        lint_group(),
        "Here's what he looks like, when he's supposed to just look like his old fatui design.",
    );
}

#[test]
fn correct_how_it_look_like_1() {
    assert_suggestion_result(
        "And I don't mind how it look like, language code subpath or the last subpath as below.",
        lint_group(),
        "And I don't mind how it looks, language code subpath or the last subpath as below.",
    );
}

#[test]
fn correct_how_it_look_like_2() {
    assert_suggestion_result(
        "Here is how it look like in your browser:",
        lint_group(),
        "Here is what it looks like in your browser:",
    );
}

#[test]
fn correct_how_it_looks_like_with_apostrophe() {
    assert_suggestion_result(
        "In the picture we can see how It look's like on worker desktop.",
        lint_group(),
        "In the picture we can see how It looks on worker desktop.",
    );
}

// MakeItSeem

#[test]
fn corrects_make_it_seems() {
    assert_suggestion_result(
        "but put it into unlisted list may make it seems like listed for GitHub",
        lint_group(),
        "but put it into unlisted list may make it seem like listed for GitHub",
    );
}

#[test]
fn corrects_made_it_seems() {
    assert_suggestion_result(
        "previous explanations made it seems like it would be n",
        lint_group(),
        "previous explanations made it seem like it would be n",
    );
}

#[test]
fn corrects_makes_it_seems() {
    assert_suggestion_result(
        "bundle gives an error that makes it seems like esbuild is trying to use lib/index.js from main",
        lint_group(),
        "bundle gives an error that makes it seem like esbuild is trying to use lib/index.js from main",
    );
}

#[test]
fn corrects_making_it_seems() {
    assert_suggestion_result(
        "Is it possible to teach the concept of assignment/reassignment at the very beginner stage instead of making it seems like constants?",
        lint_group(),
        "Is it possible to teach the concept of assignment/reassignment at the very beginner stage instead of making it seem like constants?",
    );
}

#[test]
fn corrects_made_it_seemed() {
    assert_suggestion_result(
        "The path made it seemed a bit \"internal\".",
        lint_group(),
        "The path made it seem a bit \"internal\".",
    );
}

// NervousWreck

#[test]
#[ignore = "Harper matches case by letter index as 'How Not to Be a Complete NervoUs wreck in an Interview'"]
fn correct_nerve_wreck_space_title_case() {
    assert_suggestion_result(
        "How Not to Be a Complete Nerve Wreck in an Interview",
        lint_group(),
        "How Not to Be a Complete Nervous Wreck in an Interview",
    );
}

#[test]
fn correct_nerve_wreck_space() {
    assert_suggestion_result(
        "The nerve wreck you are makes you seem anxious and agitated so your employer will believe the complaints.",
        lint_group(),
        "The nervous wreck you are makes you seem anxious and agitated so your employer will believe the complaints.",
    );
}

#[test]
fn correct_nerve_wreck_hyphen() {
    assert_suggestion_result(
        "the child receives little education and grows up to be a nerve-wreck",
        lint_group(),
        "the child receives little education and grows up to be a nervous wreck",
    );
}

#[test]
fn correct_nerve_wreck_hyphen_plural() {
    assert_suggestion_result(
        "This helps us not to become nerve wrecks while looking at the side mirrors",
        lint_group(),
        "This helps us not to become nervous wrecks while looking at the side mirrors",
    );
}

#[test]
#[ignore = "We can't detect when the altered form is used for an event rather than a person."]
fn dont_correct_it_was_a_nerve_wreck() {
    assert_no_lints(
        "It was a nerve-wreck, but I was also excited to see what would happen next.",
        lint_group(),
    );
}

#[test]
#[ignore = "We can't detect when the altered form is used for an event rather than a person."]
fn dont_correct_so_much_nerve_wreck() {
    assert_no_lints(
        "So much nerve wreck for such a simple game ...",
        lint_group(),
    );
}

// NotOnly

// -not only are-
#[test]
fn fix_no_only_are() {
    assert_suggestion_result(
        "No only are tests run on my pipeline but once successful, my app is deployed differently",
        lint_group(),
        "Not only are tests run on my pipeline but once successful, my app is deployed differently",
    );
}

// -not only is-
#[test]
fn fix_no_only_is() {
    assert_suggestion_result(
        "No only is it simple, it's efficient!",
        lint_group(),
        "Not only is it simple, it's efficient!",
    );
}

// -not only was-
#[test]
fn fix_no_only_was() {
    assert_suggestion_result(
        "No only was he happily creating shapes, but he was actively using distances and angles to do so.",
        lint_group(),
        "Not only was he happily creating shapes, but he was actively using distances and angles to do so.",
    );
}

// -not only were-
#[test]
fn fix_no_only_were() {
    assert_suggestion_result(
        "No only were there UI inconsistencies, but Safari lags behind chrome with things like the Popover API",
        lint_group(),
        "Not only were there UI inconsistencies, but Safari lags behind chrome with things like the Popover API",
    );
}

// RaiseTheQuestion

// -raise the question-
#[test]
fn detect_rise_the_question() {
    assert_suggestion_result(
        "That would rise the question how to deal with syntax errors etc.",
        lint_group(),
        "That would raise the question how to deal with syntax errors etc.",
    );
}

#[test]
fn detect_arise_the_question() {
    assert_suggestion_result(
        "As e.g. UTC+1, might arise the question whether it includes summer and winter time",
        lint_group(),
        "As e.g. UTC+1, might raise the question whether it includes summer and winter time",
    );
}

// -raises the question-
#[test]
fn detect_rises_the_question() {
    assert_suggestion_result(
        "However, this rises the question as to whether this test is conceptually sound.",
        lint_group(),
        "However, this raises the question as to whether this test is conceptually sound.",
    );
}

#[test]
fn detect_arises_the_question() {
    assert_suggestion_result(
        "And it arises the question, why?",
        lint_group(),
        "And it raises the question, why?",
    );
}

// -raising the question-
#[test]
fn detect_rising_the_question() {
    assert_suggestion_result(
        "as soon as a infoHash query is performed, a Torrent file is retried, rising the question of:",
        lint_group(),
        "as soon as a infoHash query is performed, a Torrent file is retried, raising the question of:",
    );
}

#[test]
fn detect_arising_the_question() {
    assert_suggestion_result(
        "arising the question whether the requirement of wgpu::Features::DEPTH24PLUS_STENCIL8 is precise",
        lint_group(),
        "raising the question whether the requirement of wgpu::Features::DEPTH24PLUS_STENCIL8 is precise",
    );
}

// -raised the question-
#[test]
fn detect_rose_the_question() {
    assert_suggestion_result(
        "Here is an example that rose the question at first: What works.",
        lint_group(),
        "Here is an example that raised the question at first: What works.",
    );
}

#[test]
fn detect_risen_the_question() {
    assert_suggestion_result(
        "That has risen the question in my mind if it is still possible to embed your own Flash player on Facebook today?",
        lint_group(),
        "That has raised the question in my mind if it is still possible to embed your own Flash player on Facebook today?",
    );
}

#[test]
fn detect_rised_the_question() {
    assert_suggestion_result(
        "I rised the question to Emax Support and they just came back to me inmediately with the below response.",
        lint_group(),
        "I raised the question to Emax Support and they just came back to me inmediately with the below response.",
    );
}

#[test]
#[ignore = "Not actually an error after when it's 'there arose'"]
fn dont_fag_there_arose_the_question() {
    assert_suggestion_result(
        "Hello, while I have been using modals manager there arose the question related to customizing of modal header.",
        lint_group(),
        "Hello, while I have been using modals manager there arose the question related to customizing of modal header.",
    );
}

#[test]
fn detect_arised_the_question() {
    assert_suggestion_result(
        "and that fact arised the question in my mind, what does exactly is happening",
        lint_group(),
        "and that fact raised the question in my mind, what does exactly is happening",
    );
}

#[test]
fn detect_arose_the_question() {
    assert_suggestion_result(
        "This arose the question, could I store 32 digits on the stack?",
        lint_group(),
        "This raised the question, could I store 32 digits on the stack?",
    );
}

#[test]
fn detect_arisen_the_question() {
    assert_suggestion_result(
        "Some have arisen the question like how to use this wireless HD mini camera",
        lint_group(),
        "Some have raised the question like how to use this wireless HD mini camera",
    );
}

// ToToo

// -a bridge too far-
#[test]
fn fix_a_bridge_too_far() {
    assert_suggestion_result(
        "If Winforms can ever be conquered by the Mono developers may be a bridge to far.",
        lint_group(),
        "If Winforms can ever be conquered by the Mono developers may be a bridge too far.",
    );
}

// -cake and eat it too-
#[test]
fn fix_cake_and_eat_it_too() {
    assert_suggestion_result(
        "The solution: wouldn't it be great if I could have my cake and eat it to?",
        lint_group(),
        "The solution: wouldn't it be great if I could have my cake and eat it too?",
    );
}

// -go to far-
#[test]
fn fix_go_to_far() {
    assert_suggestion_result(
        "It's difficult to be sure when we go to far sometime when you don't exactly how the beast works in the background .",
        lint_group(),
        "It's difficult to be sure when we go too far sometime when you don't exactly how the beast works in the background .",
    );
}

// -goes to far-
#[test]
fn fix_goes_to_far() {
    assert_suggestion_result(
        "Memory consumption and cpu consumption goes to far like 900% and more than this",
        lint_group(),
        "Memory consumption and cpu consumption goes too far like 900% and more than this",
    );
}

// -going to far-
#[test]
fn fix_going_to_far() {
    assert_suggestion_result(
        "wsrun is going to far on this because debug 's devDependency shouldn't be considered in the cycle detection, should it?",
        lint_group(),
        "wsrun is going too far on this because debug 's devDependency shouldn't be considered in the cycle detection, should it?",
    );
}

// -gone to far-
#[test]
fn fix_gone_to_far() {
    assert_suggestion_result(
        "I might have gone to far with opening issues for small things.",
        lint_group(),
        "I might have gone too far with opening issues for small things.",
    );
}

// -went to far-
#[test]
fn fix_went_to_far() {
    assert_suggestion_result(
        "But I went to far compared to the initial request that seems talk about ...",
        lint_group(),
        "But I went too far compared to the initial request that seems talk about ...",
    );
}

// -life's too short-
#[test]
fn fix_life_s_too_short() {
    assert_suggestion_result(
        "Life's to short for messing around with git add , writing commit message.",
        lint_group(),
        "Life's too short for messing around with git add , writing commit message.",
    );
}

#[test]
fn fix_lifes_to_short() {
    assert_suggestion_result(
        "I wouldn't go back after the 3rd interview lifes to short.",
        lint_group(),
        "I wouldn't go back after the 3rd interview life's too short.",
    );
}

// -life is too short-
#[test]
fn fix_life_is_too_short() {
    assert_suggestion_result(
        "[Life is to short to use dated cli tools that suck]",
        lint_group(),
        "[Life is too short to use dated cli tools that suck]",
    );
}

// -put too fine a point-
#[test]
fn fix_put_too_fine_a_point() {
    assert_suggestion_result(
        "Not to put to fine a point on it... that's not the kind of team I think we want to be.",
        lint_group(),
        "Not to put too fine a point on it... that's not the kind of team I think we want to be.",
    );
}

// -speak too soon-
#[test]
fn fix_speak_too_soon() {
    assert_suggestion_result(
        "I don't want to speak to soon but I kept everything as I had before but included: http = httplib2.Http()",
        lint_group(),
        "I don't want to speak too soon but I kept everything as I had before but included: http = httplib2.Http()",
    );
}

// -speaking too soon-
#[test]
fn fix_speaking_too_soon() {
    assert_suggestion_result(
        "EDIT: Thats what I get for speaking to soon...",
        lint_group(),
        "EDIT: Thats what I get for speaking too soon...",
    );
}

// -spoke too soon-
#[test]
fn fix_spoke_too_soon() {
    assert_suggestion_result(
        "I spoke to soon. Ignore the previous post.",
        lint_group(),
        "I spoke too soon. Ignore the previous post.",
    );
}

// -spoken too soon-
#[test]
fn fix_spoken_too_soon() {
    assert_suggestion_result(
        "EDIT: I might have spoken to soon...",
        lint_group(),
        "EDIT: I might have spoken too soon...",
    );
}

// -think to much-
#[test]
fn fix_think_too_much() {
    assert_suggestion_result(
        "I don't think to much about it, but I don't think it's a big deal.",
        lint_group(),
        "I don't think too much about it, but I don't think it's a big deal.",
    );
}

// -too big for-
#[test]
fn fix_too_big_for() {
    assert_suggestion_result(
        "ng-relations form to big for small screens",
        lint_group(),
        "ng-relations form too big for small screens",
    );
}

// -too big to fail-
#[test]
fn fix_too_big_to_fail() {
    assert_suggestion_result(
        "The core alone has 50k LOC. Reminds me of \"to big to fail\".",
        lint_group(),
        "The core alone has 50k LOC. Reminds me of \"too big to fail\".",
    );
}

// -too good to be true-
#[test]
fn fix_too_good_to_be_true() {
    assert_suggestion_result(
        "This seemed to good to be true, but local to scene resources will not work when they are not contained in a node.",
        lint_group(),
        "This seemed too good to be true, but local to scene resources will not work when they are not contained in a node.",
    );
}

#[test]
fn fix_too_good_too_be_true() {
    assert_suggestion_result(
        "The normalization of rewards is making the plot in tensorboard look too good too be true, because they are not the actual reward ...",
        lint_group(),
        "The normalization of rewards is making the plot in tensorboard look too good to be true, because they are not the actual reward ...",
    );
}

// -too much information-
#[test]
fn fix_too_much_information() {
    assert_suggestion_result(
        "Live test are printing way to much information and is polluting our test output",
        lint_group(),
        "Live test are printing way too much information and is polluting our test output",
    );
}

// TooTo

// -too big too fail-
#[test]
fn fix_too_big_too_fail() {
    assert_suggestion_result(
        "In other words, pointer arithmetic is, at this point, too big too fail, regardless of the clever and sophisticated way C++ lawyercats worded it.",
        lint_group(),
        "In other words, pointer arithmetic is, at this point, too big to fail, regardless of the clever and sophisticated way C++ lawyercats worded it.",
    );
}

// WholeEntire

#[test]
fn detect_atomic_whole_entire() {
    assert_suggestion_result("whole entire", lint_group(), "whole");
}

#[test]
fn correct_real_world_whole_entire() {
    assert_suggestion_result(
        "[FR] support use system dns in whole entire app",
        lint_group(),
        "[FR] support use system dns in whole app",
    );
}

// -a whole entire-
#[test]
fn correct_atomic_a_whole_entire_to_a_whole() {
    assert_suggestion_result("a whole entire", lint_group(), "a whole");
}

#[test]
fn correct_atomic_a_whole_entire_to_an_entire() {
    assert_suggestion_result("a whole entire", lint_group(), "an entire");
}

#[test]
fn correct_real_world_a_whole_entire_to_a_whole() {
    assert_suggestion_result(
        "Start mapping a whole entire new planet using NASA’s MOLA.",
        lint_group(),
        "Start mapping a whole new planet using NASA’s MOLA.",
    );
}

#[test]
fn correct_real_world_a_whole_entire_to_an_entire() {
    assert_suggestion_result(
        "I am not sure I can pass in a whole entire query via the include.",
        lint_group(),
        "I am not sure I can pass in an entire query via the include.",
    );
}

// WorseOrWorst

// -a lot worst-
#[test]
fn detect_a_lot_worse_atomic() {
    assert_suggestion_result("a lot worst", lint_group(), "a lot worse");
}

#[test]
fn detect_a_lot_worse_real_world() {
    assert_suggestion_result(
        "On a debug build, it's even a lot worst.",
        lint_group(),
        "On a debug build, it's even a lot worse.",
    );
}

// -become worst-
#[test]
fn fix_became_worst() {
    assert_suggestion_result(
        "The problem became worst lately.",
        lint_group(),
        "The problem became worse lately.",
    );
}

#[test]
fn fix_become_worst() {
    assert_suggestion_result(
        "But results seems stay at one place or become worst.",
        lint_group(),
        "But results seems stay at one place or become worse.",
    );
}

#[test]
fn fix_becomes_worst() {
    assert_suggestion_result(
        "This becomes worst if you have an x64 dll and an x86 dll that you don't have thier source codes and want to use them in same project!",
        lint_group(),
        "This becomes worse if you have an x64 dll and an x86 dll that you don't have thier source codes and want to use them in same project!",
    );
}

#[test]
fn fix_becoming_worst() {
    assert_suggestion_result(
        "France is becoming worst than the Five Eyes",
        lint_group(),
        "France is becoming worse than the Five Eyes",
    );
}

// -far worse-
#[test]
fn detect_far_worse_atomic() {
    assert_suggestion_result("far worst", lint_group(), "far worse");
}

#[test]
fn detect_far_worse_real_world() {
    assert_suggestion_result(
        "I mainly use Firefox (personal preference) and have noticed it has far worst performance than Chrome",
        lint_group(),
        "I mainly use Firefox (personal preference) and have noticed it has far worse performance than Chrome",
    );
}

// -get worst-
#[test]
fn fix_get_worse() {
    assert_suggestion_result(
        "and the problem appears to get worst with 2025.5.1 and 2025.5.2.",
        lint_group(),
        "and the problem appears to get worse with 2025.5.1 and 2025.5.2.",
    );
}

#[test]
fn fix_gets_worse() {
    assert_suggestion_result(
        "It just starts after about 15 minutes of work and gradually gets worst.",
        lint_group(),
        "It just starts after about 15 minutes of work and gradually gets worse.",
    );
}

#[test]
#[ignore = "This kind of false positive is probably too subtle to detect"]
fn dont_flag_getting_worst() {
    // Here "getting" probably belongs to "I am getting" rather than "getting worst".
    // Which would not be an error but "I am getting the worst accuracy" would be better.
    // TODO: Maybe a noun following "getting" is enough context?
    assert_lint_count(
        "I am getting worst accuracy on the same dataste and 3 different models.",
        lint_group(),
        0,
    );
}

#[test]
fn fix_getting_worst() {
    assert_suggestion_result(
        "But, as I said, it is getting worst...",
        lint_group(),
        "But, as I said, it is getting worse...",
    );
}

#[test]
fn fix_got_worst() {
    assert_suggestion_result(
        "typescript support got worst.",
        lint_group(),
        "typescript support got worse.",
    );
}

#[test]
fn fix_gotten_worst() {
    assert_suggestion_result(
        "Has Claude gotten worst?",
        lint_group(),
        "Has Claude gotten worse?",
    );
}

// -much worse-
#[test]
fn detect_much_worse_atomic() {
    assert_suggestion_result("much worst", lint_group(), "much worse");
}

#[test]
fn detect_much_worse_real_world() {
    assert_suggestion_result(
        "the generated image quality is much worst (actually nearly broken)",
        lint_group(),
        "the generated image quality is much worse (actually nearly broken)",
    );
}

// -turn for the worse-
#[test]
fn detect_turn_for_the_worse_atomic() {
    assert_suggestion_result("turn for the worst", lint_group(), "turn for the worse");
}

#[test]
fn detect_turn_for_the_worse_real_world() {
    assert_suggestion_result(
        "Very surprised to see this repo take such a turn for the worst.",
        lint_group(),
        "Very surprised to see this repo take such a turn for the worse.",
    );
}

// -worse than-
#[test]
fn detect_worse_than_atomic() {
    assert_suggestion_result("worst than", lint_group(), "worse than");
}

#[test]
fn detect_worse_than_real_world() {
    assert_suggestion_result(
        "Project real image - inversion quality is worst than in StyleGAN2",
        lint_group(),
        "Project real image - inversion quality is worse than in StyleGAN2",
    );
}

// -worst ever-
#[test]
fn detect_worst_ever_atomic() {
    assert_suggestion_result("worse ever", lint_group(), "worst ever");
}

#[test]
fn detect_worst_ever_real_world() {
    assert_suggestion_result(
        "The Bcl package family is one of the worse ever published by Microsoft.",
        lint_group(),
        "The Bcl package family is one of the worst ever published by Microsoft.",
    );
}

// -worse and worse-
#[test]
fn detect_worst_and_worst_atomic() {
    assert_suggestion_result("worst and worst", lint_group(), "worse and worse");
}

#[test]
fn detect_worst_and_worst_real_world() {
    assert_suggestion_result(
        "This control-L trick does not work for me. The padding is getting worst and worst.",
        lint_group(),
        "This control-L trick does not work for me. The padding is getting worse and worse.",
    );
}

#[test]
fn detect_worse_and_worst_real_world() {
    assert_suggestion_result(
        "This progressively got worse and worst to the point that the machine (LEAD 1010) stopped moving alltogether.",
        lint_group(),
        "This progressively got worse and worse to the point that the machine (LEAD 1010) stopped moving alltogether.",
    );
}

// -at worst-
#[test]
fn detect_at_worst_atomic() {
    assert_suggestion_result(
        "Partial moving of core objects to interpreter state is incorrect at best, unsafe at worse.",
        lint_group(),
        "Partial moving of core objects to interpreter state is incorrect at best, unsafe at worst.",
    );
}

// -worst case scenario-
#[test]
fn correct_worse_case_space() {
    assert_suggestion_result(
        "In the worse case scenario, remote code execution could be achieved.",
        lint_group(),
        "In the worst-case scenario, remote code execution could be achieved.",
    );
}

#[test]
fn correct_worse_case_hyphen() {
    assert_suggestion_result(
        "Basically I want my pods to get the original client IP address... or at least have X-Forwarded-For header, in a worse-case scenario.",
        lint_group(),
        "Basically I want my pods to get the original client IP address... or at least have X-Forwarded-For header, in a worst-case scenario.",
    );
}

#[test]
fn correct_worse_case_two_hyphens() {
    assert_suggestion_result(
        "In a worse-case-scenario, the scenario class code and the results being analysed, become out of sync, and so the wrong labels are applied.",
        lint_group(),
        "In a worst-case scenario, the scenario class code and the results being analysed, become out of sync, and so the wrong labels are applied.",
    );
}

// -make it worst-
#[test]
fn detect_make_it_worst_atomic() {
    assert_suggestion_result(
        "And if you try to access before that, CloudFront will cache the error and it'll make it worst.",
        lint_group(),
        "And if you try to access before that, CloudFront will cache the error and it'll make it worse.",
    );
}

// -made it worst-
#[test]
fn detect_made_it_worst_atomic() {
    assert_suggestion_result(
        "However in couple of occasions the refresh made it worst and it showed commit differences that were already commited and pushed to origin.",
        lint_group(),
        "However in couple of occasions the refresh made it worse and it showed commit differences that were already commited and pushed to origin.",
    );
}

// -makes it worst-
#[test]
fn detect_makes_it_worst_atomic() {
    assert_suggestion_result(
        "What makes it worst, is if I use the returned SHA to try and update the newly created file I get the same error I show below.",
        lint_group(),
        "What makes it worse, is if I use the returned SHA to try and update the newly created file I get the same error I show below.",
    );
}

// -making it worst-
#[test]
fn detect_making_it_worst_atomic() {
    assert_suggestion_result(
        "PLease ai realled need help with this I think I'm making it worst.",
        lint_group(),
        "PLease ai realled need help with this I think I'm making it worse.",
    );
}

// -make them worst-
#[test]
fn detect_make_them_worst_atomic() {
    assert_suggestion_result(
        "Not sure if this makes things clearer or make them worst.",
        lint_group(),
        "Not sure if this makes things clearer or make them worse.",
    );
}

// -made them worst-
#[test]
fn detect_made_them_worst_atomic() {
    assert_suggestion_result(
        "if not outroght caused them / made them worst",
        lint_group(),
        "if not outroght caused them / made them worse",
    );
}

// -makes them worst-
#[test]
fn detect_makes_them_worst_atomic() {
    assert_suggestion_result(
        "(tried ~14 different hyperparameter and data format combos), however, always just makes them worst, they go from \"slightly\" wrong to \"complete nonsense\".",
        lint_group(),
        "(tried ~14 different hyperparameter and data format combos), however, always just makes them worse, they go from \"slightly\" wrong to \"complete nonsense\".",
    );
}

#[test]
#[ignore = "This false positive is not handled yet"]
fn dont_flag_makes_them_worst_case() {
    assert_lint_count(
        "Note 1: all hash tables has an Achilles heel that makes them worst case O(N)",
        lint_group(),
        0,
    );
}

// -making them worst-
#[test]
fn detect_making_them_worst_atomic() {
    assert_suggestion_result(
        "As for the last part about Apple deliberately making them worst in order for us to buy the 3s",
        lint_group(),
        "As for the last part about Apple deliberately making them worse in order for us to buy the 3s",
    );
}