-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconjugation.c
2300 lines (2164 loc) · 97.4 KB
/
conjugation.c
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
#include <stdio.h>
#include <string.h>
#define TRUE 1
#define FALSE 0
#include "special_characters.h"
#include "pronunciation.h"
extern char argument[192];
extern short int lang;
extern short int show_system_messages;
extern short int dealing_with_file;
extern FILE *output_file;
extern short int html_mode;
extern short int htmlt_mode;
short int arg_counter;
short int word_counter;
short int a_for_ie = 0;
short int eu_for_u = 0;
short int ei_for_i = 0;
short int von_wahl = 0;
short int ct = FALSE; // For dealing with the ct Von Wahl
short int illogic_er = FALSE; // TRUE for words enden in -er that is stressed, like "inser"
short int illogic_el = FALSE; // TRUE for words enden in -el that is stressed, like "korel"
char infinitive[192];
char present_basis[192];
char present_basis2[192];
char present_1ps[192];
char present_2ps[192];
char present_3ps[192];
char present_1pp[192];
char present_2pp[192];
char present_3pp[192];
char past_basis[192];
char past_1ps[192];
char past_2ps[192];
char past_3ps[192];
char past_1pp[192];
char past_2pp[192];
char past_3pp[192];
char future_1ps[192];
char future_2ps[192];
char future_3ps[192];
char future_1pp[192];
char future_2pp[192];
char future_3pp[192];
char conditional_1ps[192];
char conditional_2ps[192];
char conditional_3ps[192];
char conditional_1pp[192];
char conditional_2pp[192];
char conditional_3pp[192];
char participe_t[192];
char participe_en[192];
char io_pronoun[10];
/********************************************************************
**** For checking the words
********************************************************************/
short int check_nasal_infix ()
{
short int x = 0;
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
if ((is_it_consonant(argument[arg_counter - 1]) || argument[arg_counter - 1] == 'w' || argument[arg_counter - 1] == 'y') && argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'm' && (is_it_consonant(argument[arg_counter + 2]) || argument[arg_counter + 2] == '\0') && argument[arg_counter - 1] != '\0' && !((argument[arg_counter - 1] == 'n' || argument[arg_counter - 1] == 'm')))
x++;
else if ((is_it_consonant(argument[arg_counter - 1]) || argument[arg_counter - 1] == 'w' || argument[arg_counter - 1] == 'y') && argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'n' && (is_it_consonant(argument[arg_counter + 2]) || argument[arg_counter + 2] == '\0') && argument[arg_counter - 1] != '\0' && !((argument[arg_counter - 1] == 'n' || argument[arg_counter - 1] == 'm')))
x++;
else if (!(argument[arg_counter - 1] == 'm') && argument[arg_counter] == 'm' && argument[arg_counter + 1] == 'e' && !(argument[arg_counter + 2] == '\0' || argument[arg_counter + 2] == 'h' || is_it_vowel_without_w(argument[arg_counter + 2])))
x++;
else if (!(argument[arg_counter - 1] == 'n') && argument[arg_counter] == 'n' && argument[arg_counter + 1] == 'e' && !(argument[arg_counter + 2] == '\0' || argument[arg_counter + 2] == 'h' || is_it_vowel_without_w(argument[arg_counter + 2])))
x++;
}
if (argument[strlen(argument) - 1] == 'e') x = 0; // Verbs ended in -e cannot have nasal infix
if (!(is_there_more_than_one_vowel())) x = 0; // If there is only one vowel, like the invented word "men", there cannot be a nasal infix
if (argument[strlen(argument) - 3] == 'e' && argument[strlen(argument) - 2] == 'n' && argument[strlen(argument) - 1] == 'd') x = 0; // Verbs ended in -end cannot have nasal infix
if (argument[strlen(argument) - 3] == 'e' && argument[strlen(argument) - 2] == 'n' && argument[strlen(argument) - 1] == 't') x = 0; // Verbs ended in -ent cannot have nasal infix
// Some "illogic" words that have no nasal infix because their "e" are stressed
#include "illogic_nasal_infix.h"
return x; // Have the same effect of TRUE or FALSE
}
short int check_eh ()
{
short int x = 0;
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'h' && is_it_consonant(argument[arg_counter + 2]))
x++;
}
if (argument[strlen(argument) - 1] == 'e') x = 0; // Verbs ended in -e have no ablaut
else if (argument[strlen(argument) - 2] == 'i' && argument[strlen(argument) - 1] == 'n') x = 0; // The stress is in -in
else if (argument[strlen(argument) - 2] == 'e' && argument[strlen(argument) - 1] == 'y') x = 0; // The stress is in -ey
else if ((argument[strlen(argument) - 2] == 'a' || argument[strlen(argument) - 2] == 'o' || argument[strlen(argument) - 2] == 'u') && argument[strlen(argument) - 1] == 'y') x = 0; // The stress is in -ay || oy || uy
else if (argument[strlen(argument) - 2] == 'i' && argument[strlen(argument) - 1] == 'e') x = 0; // The stress is in -ie
else if (argument[strlen(argument) - 3] == 'i' && argument[strlen(argument) - 2] == 'e' && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -ieC
else if (argument[strlen(argument) - 3] != 'q' && argument[strlen(argument) - 2] == 'u' && argument[strlen(argument) - 1] == 'i') x = 0; // The stress is in -ui
else if (argument[strlen(argument) - 4] == 'o' && is_it_consonant(argument[strlen(argument) - 3]) && argument[strlen(argument) - 2] == 'e' && argument[strlen(argument) - 1] == 'l') x = 0; // The stress is in -oCel
else if ((argument[strlen(argument) - 2] == 'a' || argument[strlen(argument) - 2] == 'o' || argument[strlen(argument) - 2] == 'u') && is_it_consonant(argument[strlen(argument) - 1]) && argument[strlen(argument) - 1] != 's') x = 0; // The stress is in -aC || -oC || -uC
else if (is_it_vowel(argument[strlen(argument) - 3]) && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1]) && ((argument[strlen(argument) - 2] == argument[strlen(argument) - 1]) || (argument[strlen(argument) - 2] == 'c' && argument[strlen(argument) - 1] == 'k'))) x = 0; // The stressed vowel is in the vowel VCC
else if (argument[strlen(argument) - 2] == 'a' && argument[strlen(argument) - 1] == 'h') x = 0; // The stress is in -ah
return x; // Have the same effect of TRUE or FALSE
}
short int check_eu ()
{
short int x = 0;
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'u' && (is_it_consonant(argument[arg_counter + 2]) || argument[arg_counter + 2] == 'y' || argument[arg_counter + 2] == 'w' || argument[arg_counter + 2] == '\0'))
x++;
}
if (argument[strlen(argument) - 1] == 'e') x = 0; // Verbs ended in -e have no ablaut
else if (argument[strlen(argument) - 2] == 'i' && argument[strlen(argument) - 1] == 'n') x = 0; // The stress is in -in
else if (argument[strlen(argument) - 2] == 'e' && argument[strlen(argument) - 1] == 'y') x = 0; // The stress is in -ey
else if ((argument[strlen(argument) - 2] == 'a' || argument[strlen(argument) - 2] == 'o' || argument[strlen(argument) - 2] == 'u') && argument[strlen(argument) - 1] == 'y') x = 0; // The stress is in -ay || oy || uy
else if (argument[strlen(argument) - 2] == 'i' && argument[strlen(argument) - 1] == 'e') x = 0; // The stress is in -ie
else if (argument[strlen(argument) - 3] == 'i' && argument[strlen(argument) - 2] == 'e' && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -ieC
else if (argument[strlen(argument) - 3] != 'q' && argument[strlen(argument) - 2] == 'u' && argument[strlen(argument) - 1] == 'i') x = 0; // The stress is in -ui
else if (argument[strlen(argument) - 4] == 'o' && is_it_consonant(argument[strlen(argument) - 3]) && argument[strlen(argument) - 2] == 'e' && argument[strlen(argument) - 1] == 'l') x = 0; // The stress is in -oCel
else if ((argument[strlen(argument) - 2] == 'a' || argument[strlen(argument) - 2] == 'o' || argument[strlen(argument) - 2] == 'u') && is_it_consonant(argument[strlen(argument) - 1]) && argument[strlen(argument) - 1] != 's') // The stress is in -aC || -oC || -uC
{
if (argument[strlen(argument) - 3] == 'e' && argument[strlen(argument) - 2] == 'u')
{/*Do nothing*/}
else x = 0;
}
else if ((argument[strlen(argument) - 3] == 'a' || argument[strlen(argument) - 3] == 'o' || argument[strlen(argument) - 3] == 'u') && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1])) // The stress is in -aCC || -oCC || -uCC
{
if (argument[strlen(argument) - 4] == 'e' && argument[strlen(argument) - 3] == 'u')
{/*Do nothing*/}
else x = 0;
}
else if ((argument[strlen(argument) - 4] == 'a' || argument[strlen(argument) - 4] == 'o' || argument[strlen(argument) - 4] == 'u') && is_it_consonant(argument[strlen(argument) - 3]) && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1])) // The stress is in -aCCC || -oCCC || -uCCC
{
if (argument[strlen(argument) - 5] == 'e' && argument[strlen(argument) - 4] == 'u')
{/*Do nothing*/}
else x = 0;
}
else if (is_it_vowel(argument[strlen(argument) - 3]) && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1]) && ((argument[strlen(argument) - 2] == argument[strlen(argument) - 1]) || (argument[strlen(argument) - 2] == 'c' && argument[strlen(argument) - 1] == 'k'))) // The stressed vowel is in the vowel VCC
{
if (argument[strlen(argument) - 4] == 'e' && argument[strlen(argument) - 3] == 'u')
{/*Do nothing*/}
else x = 0;
}
else if (argument[strlen(argument) - 2] == 'a' && argument[strlen(argument) - 1] == 'h') x = 0; // The stress is in -ah
return x; // Have the same effect of TRUE or FALSE
}
short int check_ei ()
{
short int x = 0;
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'i' && (is_it_consonant(argument[arg_counter + 2]) || argument[arg_counter + 2] == 'y' || argument[arg_counter + 2] == 'w' || argument[arg_counter + 2] == '\0') && /*skeir is a prefix*/ !(argument[arg_counter - 2] == 's' && argument[arg_counter - 1] == 'k' && argument[arg_counter + 2] == 'r'))
x++;
}
if (argument[strlen(argument) - 1] == 'e') x = 0; // Verbs ended in -e have no ablaut
else if (argument[strlen(argument) - 3] != 'e' && argument[strlen(argument) - 2] == 'i' && argument[strlen(argument) - 1] == 'n') x = 0; // The stress is in -in
else if (argument[strlen(argument) - 2] == 'e' && argument[strlen(argument) - 1] == 'y') x = 0; // The stress is in -ey
else if ((argument[strlen(argument) - 2] == 'a' || argument[strlen(argument) - 2] == 'o' || argument[strlen(argument) - 2] == 'u') && argument[strlen(argument) - 1] == 'y') x = 0; // The stress is in -ay || oy || uy
else if (argument[strlen(argument) - 2] == 'i' && argument[strlen(argument) - 1] == 'e') x = 0; // The stress is in -ie
else if (argument[strlen(argument) - 3] == 'i' && argument[strlen(argument) - 2] == 'e' && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -ieC
else if (argument[strlen(argument) - 3] != 'q' && argument[strlen(argument) - 2] == 'u' && argument[strlen(argument) - 1] == 'i') x = 0; // The stress is in -ui
else if (argument[strlen(argument) - 4] == 'o' && is_it_consonant(argument[strlen(argument) - 3]) && argument[strlen(argument) - 2] == 'e' && argument[strlen(argument) - 1] == 'l') x = 0; // The stress is in -oCel
else if ((argument[strlen(argument) - 2] == 'a' || argument[strlen(argument) - 2] == 'o' || argument[strlen(argument) - 2] == 'u') && is_it_consonant(argument[strlen(argument) - 1]) && argument[strlen(argument) - 1] != 's') x = 0; // The stress is in -aC || -oC || -uC
else if ((argument[strlen(argument) - 3] == 'a' || argument[strlen(argument) - 3] == 'o' || argument[strlen(argument) - 3] == 'u') && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -aCC || -oCC || -uCC
else if ((argument[strlen(argument) - 4] == 'a' || argument[strlen(argument) - 4] == 'o' || argument[strlen(argument) - 4] == 'u') && is_it_consonant(argument[strlen(argument) - 3]) && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -aCCC || -oCCC || -uCCC
else if (is_it_vowel(argument[strlen(argument) - 3]) && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1]) && ((argument[strlen(argument) - 2] == argument[strlen(argument) - 1]) || (argument[strlen(argument) - 2] == 'c' && argument[strlen(argument) - 1] == 'k'))) // The stressed vowel is in the vowel VCC
{
if (argument[strlen(argument) - 4] == 'e' && argument[strlen(argument) - 3] == 'i')
{/*Do nothing*/}
else x = 0;
}
else if (argument[strlen(argument) - 2] == 'a' && argument[strlen(argument) - 1] == 'h') x = 0; // The stress is in -ah
return x; // Have the same effect of TRUE or FALSE
}
short int check_a ()
{
short int x = 0;
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
// Test verbs that start with an a-
if (argument[arg_counter - 1] == '\0' && argument[arg_counter] == 'a') // I believe that any a- verb with more than 6 letters has no ablaut in the firs "a"
{
if (strcmp(argument, "ag") == 0 || strcmp(argument, "aghel") == 0 || strcmp(argument, "al") == 0 || strcmp(argument, "algv") == 0 || strcmp(argument, "ammer") == 0 || strcmp(argument, "andh") == 0 || strcmp(argument, "angh") == 0 || strcmp(argument, "ap") == 0 || strcmp(argument, "ar") == 0 || strcmp(argument, "ark") == 0 || strcmp(argument, "aug") == 0 || strcmp(argument, "aum") == 0 || strcmp(argument, "aumber") == 0 || strcmp(argument, "aur") == 0 || strcmp(argument, "aurgh") == 0 || strcmp(argument, "ausk") == 0 || strcmp(argument, "ay") == 0 || strcmp(argument, "aygw") == 0 || strcmp(argument, "ayr") == 0 || strcmp(argument, "aysgwn") == 0 || strcmp(argument, "azwl") == 0)
x++;
}
// Test the "a" in other positions
// sua- is a prefix
else if (argument[arg_counter - 3] == '\0' && argument[arg_counter - 2] == 's' && argument[arg_counter - 1] == 'u' && argument[arg_counter] == 'a')
{
// Do nothing
}
else if (argument[arg_counter - 1] != '\0' && argument[arg_counter] == 'a' && argument[arg_counter + 1] != '\0' && (is_it_consonant(argument[arg_counter + 1]) || argument[arg_counter + 1] == 'y' || argument[arg_counter + 1] == 'u') && !(argument[arg_counter + 1] == 'h' && argument[arg_counter + 2] == '\0'))
{
x++;
}
}
if (argument[strlen(argument) - 1] == 'e') x = 0; // Verbs ended in -e have no ablaut
else if (argument[strlen(argument) - 2] == 'i' && argument[strlen(argument) - 1] == 'n') x = 0; // The stress is in -in
else if (argument[strlen(argument) - 2] == 'e' && argument[strlen(argument) - 1] == 'y') x = 0; // The stress is in -ey
else if (is_it_vowel(argument[strlen(argument) - 2]) && argument[strlen(argument) - 2] != 'a' && argument[strlen(argument) - 1] == 'h') x = 0; // The stress is in -Vh
else if ((argument[strlen(argument) - 2] == 'o' || argument[strlen(argument) - 2] == 'u') && argument[strlen(argument) - 1] == 'y') x = 0; // The stress is in -oy || uy
else if (argument[strlen(argument) - 2] == 'i' && argument[strlen(argument) - 1] == 'e') x = 0; // The stress is in -ie
else if (argument[strlen(argument) - 3] == 'i' && argument[strlen(argument) - 2] == 'e' && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -ieC
else if (argument[strlen(argument) - 3] != 'q' && argument[strlen(argument) - 2] == 'u' && argument[strlen(argument) - 1] == 'i') x = 0; // The stress is in -ui
else if (argument[strlen(argument) - 4] == 'o' && is_it_consonant(argument[strlen(argument) - 3]) && argument[strlen(argument) - 2] == 'e' && argument[strlen(argument) - 1] == 'l') x = 0; // The stress is in -oCel
else if ((argument[strlen(argument) - 2] == 'o' || argument[strlen(argument) - 2] == 'u') && is_it_consonant(argument[strlen(argument) - 1]) && argument[strlen(argument) - 1] != 's') x = 0; // The stress is in -oC || -uC
else if ((argument[strlen(argument) - 3] == 'o' || argument[strlen(argument) - 3] == 'u') && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -oCC || -uCC
else if ((argument[strlen(argument) - 4] == 'o' || argument[strlen(argument) - 4] == 'u') && is_it_consonant(argument[strlen(argument) - 3]) && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -oCCC || -uCCC
else if ((argument[strlen(argument) - 5] == 'o' || argument[strlen(argument) - 5] == 'u') && is_it_consonant(argument[strlen(argument) - 4]) && is_it_consonant(argument[strlen(argument) - 3]) && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1])) x = 0; // The stress is in -oCCCC || -uCCCC
else if (is_it_vowel(argument[strlen(argument) - 3]) && argument[strlen(argument) - 3] != 'a' && is_it_consonant(argument[strlen(argument) - 2]) && is_it_consonant(argument[strlen(argument) - 1]) && ((argument[strlen(argument) - 2] == argument[strlen(argument) - 1]) || (argument[strlen(argument) - 2] == 'c' && argument[strlen(argument) - 1] == 'k'))) x = 0; // The stressed vowel is in the vowel VCC
else if (argument[strlen(argument) - 2] == 'a' && argument[strlen(argument) - 1] == 'h') x = 0; // The stress is in -ah
// Manual corrections
if (strcmp(argument, "chiaujaen") == 0) x = 0;
else if (strcmp(argument, "contradic") == 0) x = 0;
else if (strcmp(argument, "contraven") == 0) x = 0;
else if (strcmp(argument, "desaddic") == 0) x = 0;
else if (strcmp(argument, "embraned") == 0) x = 0;
else if (strcmp(argument, "fanzow") == 0) x = 0;
else if (strcmp(argument, "faungmoen") == 0) x = 0;
else if (strcmp(argument, "fwenschaw") == 0) x = 1; // This one has ablaut
else if (strcmp(argument, "mwaungsou") == 0) x = 0;
else if (strcmp(argument, "palpeber") == 0) x = 0;
else if (strcmp(argument, "transcrib") == 0) x = 0;
else if (strcmp(argument, "transfer") == 0) x = 0;
else if (strcmp(argument, "zanchou") == 0) x = 0;
return x; // Have the same effect of TRUE or FALSE
}
short int check_von_wahl ()
{
short int x = 0;
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
if (argument[arg_counter] == 'd' && argument[arg_counter + 1] == '\0')
x++;
else if (argument[arg_counter] == 't' && argument[arg_counter + 1] == 't' && argument[arg_counter + 2] == '\0')
x++;
else if (argument[arg_counter] == 'r' && argument[arg_counter + 1] == 't' && argument[arg_counter + 2] == '\0')
x++;
else if (argument[arg_counter] == 'r' && argument[arg_counter + 1] == 'r' && argument[arg_counter + 2] == '\0')
x++;
else if (argument[arg_counter] == 'r' && argument[arg_counter + 1] == 'g' && argument[arg_counter + 2] == '\0')
x++;
else if (argument[arg_counter] == 'l' && argument[arg_counter + 1] == 'g' && argument[arg_counter + 2] == '\0')
x++;
else if (argument[arg_counter] == 'c' && argument[arg_counter + 1] == 't' && argument[arg_counter + 2] == '\0')
x++;
}
if (check_eh() || check_ei() || check_eu()) x = 0;
return x; // Have the same effect of TRUE or FALSE
}
short int check_von_wahl_v ()
{
short int x = 0;
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
if (argument[arg_counter - 1] != 'g' && argument[arg_counter] == 'v' && argument[arg_counter + 1] == '\0')
x++;
}
if (check_eh() || check_ei() || check_eu()) x = 0;
return x; // Have the same effect of TRUE or FALSE
}
/********************************************************************
**** The tenses
********************************************************************/
void present_tense ()
{
short int present_1pp_counter;
short int present_2pp_counter;
short int present_3pp_counter;
/********************************************************************
********************************************************************/
if (check_nasal_infix ())
{
// For the first person singular, first person plural and third person plural
word_counter = 0;
for (arg_counter = 0; arg_counter < strlen(argument) ; arg_counter++)
{
if (argument[arg_counter - 1] != '\0' && argument[arg_counter] == 'e' && (argument[arg_counter - 1] == 'n' || argument[arg_counter + 1] == 'n' || argument[arg_counter - 1] == 'm' || argument[arg_counter + 1] == 'm') && !((argument[arg_counter - 1] != 'n' && argument[arg_counter - 1] != 'm') && is_it_consonant(argument[arg_counter + 2]) && argument[arg_counter + 3] == '\0'))
{
// I check before whether there is not another syllable with the same
if (argument[arg_counter + 2] == 'e' && (argument[arg_counter + 1] == 'n' || argument[arg_counter + 3] == 'n' || argument[arg_counter + 1] == 'm' || argument[arg_counter + 3] == 'm'))
{
present_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 3] == 'e' && (argument[arg_counter + 2] == 'n' || argument[arg_counter + 4] == 'n' || argument[arg_counter + 2] == 'm' || argument[arg_counter + 4] == 'm'))
{
present_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 4] == 'e' && (argument[arg_counter + 3] == 'n' || argument[arg_counter + 5] == 'n' || argument[arg_counter + 3] == 'm' || argument[arg_counter + 5] == 'm'))
{
present_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 5] == 'e' && (argument[arg_counter + 4] == 'n' || argument[arg_counter + 6] == 'n' || argument[arg_counter + 4] == 'm' || argument[arg_counter + 6] == 'm'))
{
present_basis[word_counter] = argument[arg_counter];
word_counter++;
}
// Now we can safely erase this letter
else
{
// Do nothing
}
}
else if (argument[arg_counter] == 's' && argument[arg_counter + 1] == 's' && argument[arg_counter + 2] == 'e' && (argument[arg_counter + 3] == 'm' || argument[arg_counter + 3] == 'n'))
{
// Do nothing
}
else if (argument[arg_counter] == 's' && argument[arg_counter + 1] == 'e' && (argument[arg_counter + 2] == 'm' || argument[arg_counter + 2] == 'n'))
{
// Do nothing
}
else if (argument[arg_counter] == 's' && argument[arg_counter - 1] == 'e' && is_it_vowel(argument[arg_counter - 3]))
{
// Do nothing
}
else if (argument[arg_counter] == 's' && argument[arg_counter - 1] == 's' && argument[arg_counter - 2] == 'e' && is_it_vowel(argument[arg_counter - 4]))
{
// Do nothing
}
else
{
present_basis[word_counter] = argument[arg_counter];
word_counter++;
}
}
// For the second person singular, third person singular and second person plural
word_counter = 0;
for (arg_counter = 0; arg_counter < strlen(argument) ; arg_counter++)
{
if (argument[arg_counter - 1] != '\0' && argument[arg_counter] == 'e' && (argument[arg_counter - 1] == 'n' || argument[arg_counter + 1] == 'n' || argument[arg_counter - 1] == 'm' || argument[arg_counter + 1] == 'm'))
{
// I check before whether there is not another syllable with the same
if (argument[arg_counter + 2] == 'e' && (argument[arg_counter + 1] == 'n' || argument[arg_counter + 3] == 'n' || argument[arg_counter + 1] == 'm' || argument[arg_counter + 3] == 'm'))
{
present_basis2[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 3] == 'e' && (argument[arg_counter + 2] == 'n' || argument[arg_counter + 4] == 'n' || argument[arg_counter + 2] == 'm' || argument[arg_counter + 4] == 'm'))
{
present_basis2[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 4] == 'e' && (argument[arg_counter + 3] == 'n' || argument[arg_counter + 5] == 'n' || argument[arg_counter + 3] == 'm' || argument[arg_counter + 5] == 'm'))
{
present_basis2[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 5] == 'e' && (argument[arg_counter + 4] == 'n' || argument[arg_counter + 6] == 'n' || argument[arg_counter + 4] == 'm' || argument[arg_counter + 6] == 'm'))
{
present_basis2[word_counter] = argument[arg_counter];
word_counter++;
}
else
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'n' && is_it_consonant(argument[arg_counter - 1]) && !(argument[arg_counter - 1] == 's'))
{
present_basis2[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'm' && is_it_consonant(argument[arg_counter - 1]) && !(argument[arg_counter - 1] == 's'))
{
present_basis2[word_counter] = argument[arg_counter];
word_counter++;
}
else
{
// Do nothing
}
}
}
else if (argument[arg_counter] == 's' && argument[arg_counter + 1] == 's' && argument[arg_counter + 2] == 'e' && (argument[arg_counter + 3] == 'm' || argument[arg_counter + 3] == 'n'))
{
// Do nothing
}
else if (argument[arg_counter] == 's' && argument[arg_counter + 1] == 'e' && (argument[arg_counter + 2] == 'm' || argument[arg_counter + 2] == 'n'))
{
// Do nothing
}
else if (argument[arg_counter] == 's' && argument[arg_counter - 1] == 'e' && is_it_vowel(argument[arg_counter - 3]))
{
// Do nothing
}
else if (argument[arg_counter] == 's' && argument[arg_counter - 1] == 's' && argument[arg_counter - 2] == 'e' && is_it_vowel(argument[arg_counter - 4]))
{
// Do nothing
}
else
{
present_basis2[word_counter] = argument[arg_counter];
word_counter++;
}
}
}
else
{
strcpy(present_basis, argument);
strcpy(present_basis2, argument);
}
// First person singular
strcpy(present_1ps, present_basis);
if (strcmp(argument, "es") == 0) // Irregular verb
{
strcpy(present_1ps, "som");
}
else if (strcmp(argument, "hab") == 0) // Irregular verb
{
strcpy(present_1ps, "ho");
}
else if (strcmp(argument, "woid") == 0) // Irregular verb
{
strcpy(present_1ps, "woidim");
}
else if (present_1ps[strlen(present_1ps) - 1] == 'e' || (present_basis[strlen(present_basis) - 3] != 'i' && !(illogic_er) && present_1ps[strlen(present_1ps) - 2] == 'e' && present_1ps[strlen(present_1ps) - 1] == 'r'))
{
// Do nothing
}
else if (present_basis[strlen(present_basis) - 3] != 'i' && !(illogic_el) && present_basis[strlen(present_basis) - 2] == 'e' && present_basis[strlen(present_basis) - 1] == 'l')
{
// Do nothing
}
else if (present_1ps[strlen(present_1ps) - 1] == 'w' || (!(present_1ps[strlen(present_1ps) - 2] == 'a' || present_1ps[strlen(present_1ps) - 2] == 'u') && present_1ps[strlen(present_1ps) - 1] == 'y')) present_1ps[strlen(present_1ps)] = 'o';
else if (is_it_vowel(present_1ps[strlen(present_1ps) - 1]) || present_1ps[strlen(present_1ps) - 1] == 'y') present_1ps[strlen(present_1ps)] = 'm';
else if (is_it_vowel(present_1ps[strlen(present_1ps) - 2]) && present_1ps[strlen(present_1ps) - 1] == 'h') present_1ps[strlen(present_1ps)] = 'm';
else present_1ps[strlen(present_1ps)] = 'o';
// Second person singular
strcpy(present_2ps, present_basis2);
if (strcmp(argument, "es") == 0) // Irregular verb
{
strcpy(present_2ps, "es");
}
else if (strcmp(argument, "hab") == 0) // Irregular verb
{
strcpy(present_2ps, "has");
}
else if (strcmp(argument, "woid") == 0) // Irregular verb
{
strcpy(present_2ps, "woidst(a)");
}
else if (present_basis2[strlen(present_basis2) - 1] == 's')
{
// Do nothing
}
else if (present_basis2[strlen(present_basis2) - 1] == 'g')
{
present_2ps[strlen(present_2ps) - 1] = 'c';
present_2ps[strlen(present_2ps)] = 's';
}
else if (present_basis2[strlen(present_basis2) - 2] != 'c' && present_basis2[strlen(present_basis2) - 1] == 'k')
{
present_2ps[strlen(present_2ps) - 1] = 'c';
present_2ps[strlen(present_2ps)] = 's';
}
else if (present_basis2[strlen(present_basis2) - 1] == 'b')
{
present_2ps[strlen(present_2ps) - 1] = 'p';
present_2ps[strlen(present_2ps)] = 's';
}
else if (present_basis2[strlen(present_basis2) - 1] == 'v' && present_basis2[strlen(present_basis2) - 2] != 'g' && (check_eh() || check_ei() || check_eu()))
{
present_2ps[strlen(present_2ps) - 1] = 'f';
present_2ps[strlen(present_2ps)] = 's';
}
else if (present_basis2[strlen(present_basis2) - 2] == 'g' && present_basis2[strlen(present_basis2) - 1] == 'n')
{
present_2ps[strlen(present_2ps)] = 'e';
present_2ps[strlen(present_2ps)] = 's';
}
else present_2ps[strlen(present_2ps)] = 's';
// Third person singular
strcpy(present_3ps, present_basis2);
if (strcmp(argument, "es") == 0) // Irregular verb
{
strcpy(present_3ps, "est");
}
else if (strcmp(argument, "hab") == 0) // Irregular verb
{
strcpy(present_3ps, "hat");
}
else if (strcmp(argument, "woid") == 0) // Irregular verb
{
strcpy(present_3ps, "woidit");
}
else if (present_3ps[strlen(present_3ps) - 1] == 'g') present_3ps[strlen(present_3ps) - 1] = 'c';
else if (present_3ps[strlen(present_3ps) - 2] != 'c' && present_3ps[strlen(present_3ps) - 1] == 'k') present_3ps[strlen(present_3ps) - 1] = 'c';
else if (present_3ps[strlen(present_3ps) - 1] == 'b') present_3ps[strlen(present_3ps) - 1] = 'p';
else if (present_3ps[strlen(present_3ps) - 1] == 'v' && present_3ps[strlen(present_3ps) - 2] != 'g' && (check_eh() || check_ei() || check_eu())) present_3ps[strlen(present_3ps) - 1] = 'f';
if (!((strcmp(argument, "es") == 0) || (strcmp(argument, "hab") == 0) || (strcmp(argument, "woid") == 0)))
{
if (present_3ps[strlen(present_3ps) - 2] == 'g' && present_3ps[strlen(present_3ps) - 1] == 'n')
{
present_3ps[strlen(present_3ps)] = 'e';
present_3ps[strlen(present_3ps)] = 't';
}
else if (present_3ps[strlen(present_3ps) - 1] != 't') present_3ps[strlen(present_3ps)] = 't';
}
// First person plural
strcpy(present_1pp, present_basis);
if (strcmp(argument, "es") == 0) // Irregular verb
{
strcpy(present_1pp, "smos");
}
else if (strcmp(argument, "hab") == 0) // Irregular verb
{
strcpy(present_1pp, "habmos/hams");
}
else if (strcmp(argument, "woid") == 0) // Irregular verb
{
strcpy(present_1pp, "woidam");
}
else if (check_nasal_infix())
{
if (is_it_vowel(present_1pp[strlen(present_1pp) - 3]) && is_it_consonant(present_1pp[strlen(present_1pp) - 2]) && is_it_consonant(present_1pp[strlen(present_1pp) - 1]))
{
if ((present_1pp[strlen(present_1pp) - 2] == 'g' && present_1pp[strlen(present_1pp) - 1] == 'n') || (present_1pp[strlen(present_1pp) - 2] == 'm' && present_1pp[strlen(present_1pp) - 1] == 'n'))
{
present_1pp_counter = strlen(present_1pp);
present_1pp[present_1pp_counter] = 'e';
present_1pp[present_1pp_counter + 1] = 'm';
present_1pp[present_1pp_counter + 2] = 's';
}
else
{
present_1pp_counter = strlen(present_1pp);
present_1pp[present_1pp_counter] = 'm';
present_1pp[present_1pp_counter + 1] = '(';
present_1pp[present_1pp_counter + 2] = 'o';
present_1pp[present_1pp_counter + 3] = ')';
present_1pp[present_1pp_counter + 4] = 's';
}
}
else
{
present_1pp_counter = strlen(present_1pp);
present_1pp[present_1pp_counter] = 'm';
present_1pp[present_1pp_counter + 1] = '(';
present_1pp[present_1pp_counter + 2] = 'o';
present_1pp[present_1pp_counter + 3] = ')';
present_1pp[present_1pp_counter + 4] = 's';
}
}
else if (present_1pp[strlen(present_1pp) - 1] == 'e')
{
present_1pp_counter = strlen(present_1pp);
present_1pp[present_1pp_counter] = 'm';
present_1pp[present_1pp_counter + 1] = 's';
}
else if (present_1pp[strlen(present_1pp) - 3] != 'i' && !(illogic_er) && present_1pp[strlen(present_1pp) - 2] == 'e' && present_1pp[strlen(present_1pp) - 1] == 'r')
{
present_1pp_counter = strlen(present_1pp);
present_1pp[present_1pp_counter] = 'm';
present_1pp[present_1pp_counter + 1] = 's';
}
else if (present_1pp[strlen(present_1pp) - 3] != 'i' && !(illogic_el) && present_1pp[strlen(present_1pp) - 2] == 'e' && present_1pp[strlen(present_1pp) - 1] == 'l')
{
present_1pp_counter = strlen(present_1pp);
present_1pp[present_1pp_counter] = 'm';
present_1pp[present_1pp_counter + 1] = 's';
}
else
{
if (((present_1pp[strlen(present_1pp) - 2] == 'g' && present_1pp[strlen(present_1pp) - 1] == 'n')))
{
present_1pp_counter = strlen(present_1pp);
present_1pp[present_1pp_counter] = 'e';
present_1pp[present_1pp_counter + 1] = 'm';
present_1pp[present_1pp_counter + 2] = 's';
}
else
{
present_1pp_counter = strlen(present_1pp);
present_1pp[present_1pp_counter] = 'm';
present_1pp[present_1pp_counter + 1] = '(';
present_1pp[present_1pp_counter + 2] = 'o';
present_1pp[present_1pp_counter + 3] = ')';
present_1pp[present_1pp_counter + 4] = 's';
}
}
// Second person plural
strcpy(present_2pp, present_basis2);
if (strcmp(argument, "es") == 0) // Irregular verb
{
strcpy(present_2pp, "ste");
}
else if (strcmp(argument, "hab") == 0) // Irregular verb
{
strcpy(present_2pp, "habte");
}
else if (strcmp(argument, "woid") == 0) // Irregular verb
{
strcpy(present_2pp, "woidat");
}
else
{
present_2pp_counter = strlen(present_2pp);
if (present_2pp[strlen(present_2pp) - 1] == 'g') present_2pp[strlen(present_2pp) - 1] = 'c';
else if (present_2pp[strlen(present_2pp) - 2] != 'c' && present_2pp[strlen(present_2pp) - 1] == 'k') present_2pp[strlen(present_2pp) - 1] = 'c';
else if (present_2pp[strlen(present_2pp) - 1] == 'b') present_2pp[strlen(present_2pp) - 1] = 'p';
else if (present_2pp[strlen(present_2pp) - 1] == 'v' && present_2pp[strlen(present_2pp) - 2] != 'g' && (check_eh() || check_ei() || check_eu())) present_2pp[strlen(present_2pp) - 1] = 'f';
if ((present_2pp[present_2pp_counter - 3] != 'i' && !(illogic_er) && present_2pp[present_2pp_counter - 2] == 'e' && present_2pp[present_2pp_counter - 1] == 'r') || (present_2pp[present_2pp_counter - 3] != 'i' && !(illogic_el) && present_2pp[present_2pp_counter - 2] == 'e' && present_2pp[present_2pp_counter - 1] == 'l'))
{
present_2pp[present_2pp_counter] = 't';
}
else if (present_2pp[present_2pp_counter - 2] == 'g' && present_2pp[present_2pp_counter - 1] == 'n')
{
present_2pp[present_2pp_counter] = 'e';
present_2pp[present_2pp_counter + 1] = 't';
present_2pp[present_2pp_counter + 2] = '(';
present_2pp[present_2pp_counter + 3] = 'e';
present_2pp[present_2pp_counter + 4] = ')';
}
else if (present_2pp[present_2pp_counter - 1] != 't')
{
present_2pp[present_2pp_counter] = 't';
present_2pp[present_2pp_counter + 1] = '(';
present_2pp[present_2pp_counter + 2] = 'e';
present_2pp[present_2pp_counter + 3] = ')';
}
else
{
present_2pp[present_2pp_counter] = 'e';
}
}
// Third person plural
strcpy(present_3pp, present_basis);
if (strcmp(argument, "es") == 0) // Irregular verb
{
strcpy(present_3pp, "sont");
}
else if (strcmp(argument, "hab") == 0) // Irregular verb
{
strcpy(present_3pp, "habent/hant");
}
else if (strcmp(argument, "woid") == 0) // Irregular verb
{
strcpy(present_3pp, "woideer");
}
else
{
present_3pp_counter = strlen(present_3pp);
if (is_it_vowel(present_3pp[present_3pp_counter - 1]) || (present_3pp[present_3pp_counter - 1] == 'h' && is_it_vowel(present_3pp[present_3pp_counter - 2])) || (present_3pp[present_3pp_counter - 3] != 'i' && !(illogic_er) && present_3pp[present_3pp_counter - 2] == 'e' && present_3pp[present_3pp_counter - 1] == 'r') || (present_3pp[present_3pp_counter - 3] != 'i' && !(illogic_el) && present_3pp[present_3pp_counter - 2] == 'e' && present_3pp[present_3pp_counter - 1] == 'l'))
{
present_3pp[present_3pp_counter] = 'n';
present_3pp[present_3pp_counter + 1] = 't';
}
else
{
present_3pp[present_3pp_counter] = 'e';
present_3pp[present_3pp_counter + 1] = '(';
present_3pp[present_3pp_counter + 2] = 'n';
present_3pp[present_3pp_counter + 3] = 't';
present_3pp[present_3pp_counter + 4] = ')';
}
}
}
void past_tense ()
{
short int past_basis_counter;
short int nasal_infix_counter_e = 0;
short int nasal_infix_counter_mn = 0;
if (check_eh() && check_ei())
{
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'h') goto GOTO_EH;
else if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'i') goto GOTO_EI;
}
}
else if (check_eh() && check_eu())
{
for (arg_counter = strlen(argument); arg_counter >= 0 ; arg_counter--)
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'h') goto GOTO_EH;
else if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'u') goto GOTO_EU;
}
}
else if (check_a() && check_nasal_infix())
{
goto GOTO_NASAL;
}
if (check_eh())
{
GOTO_EH:
word_counter = 0;
for (arg_counter = 0; arg_counter < strlen(argument) ; arg_counter++)
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'h')
{
if (argument[arg_counter + 2] == 'e' && argument[arg_counter + 3] == 'h')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 3] == 'e' && argument[arg_counter + 4] == 'h')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 4] == 'e' && argument[arg_counter + 5] == 'h')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 5] == 'e' && argument[arg_counter + 6] == 'h')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else
{
past_basis[arg_counter] = 'o';
word_counter++;
}
}
else
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
}
}
else if (check_nasal_infix())
{
GOTO_NASAL:
word_counter = 0;
for (arg_counter = 0; arg_counter < strlen(argument) ; arg_counter++)
{
if (argument[arg_counter - 1] != '\0' && argument[arg_counter] == 'e' && (argument[arg_counter - 1] == 'n' || argument[arg_counter + 1] == 'n' || argument[arg_counter - 1] == 'm' || argument[arg_counter + 1] == 'm'))
{
// I check before whether there is not another syllable with the same
if (argument[arg_counter + 2] == 'e' && (argument[arg_counter + 1] == 'n' || argument[arg_counter + 3] == 'n' || argument[arg_counter + 1] == 'm' || argument[arg_counter + 3] == 'm'))
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 3] == 'e' && (argument[arg_counter + 2] == 'n' || argument[arg_counter + 4] == 'n' || argument[arg_counter + 2] == 'm' || argument[arg_counter + 4] == 'm'))
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 4] == 'e' && (argument[arg_counter + 3] == 'n' || argument[arg_counter + 5] == 'n' || argument[arg_counter + 3] == 'm' || argument[arg_counter + 5] == 'm'))
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 5] == 'e' && (argument[arg_counter + 4] == 'n' || argument[arg_counter + 6] == 'n' || argument[arg_counter + 4] == 'm' || argument[arg_counter + 6] == 'm'))
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
// Now we can safely erase this letter
else
{
if (nasal_infix_counter_e == 0)
{
// Do nothing
nasal_infix_counter_e++;
}
else
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
}
}
else if (!(argument[arg_counter - 1] == '\0' || (argument[arg_counter - 2] == '\0' && argument[arg_counter - 1] == 'e')) && argument[arg_counter] == 'n' && (argument[arg_counter - 1] == 'e' || argument[arg_counter + 1] == 'e') && !(argument[arg_counter - 1] == 'n' || argument[arg_counter + 1] == 'n'))
{
if (argument[arg_counter + 2] == 'n' && (argument[arg_counter + 1] == 'e' || argument[arg_counter + 3] == 'e') && !(argument[arg_counter + 1] == 'n' || argument[arg_counter + 3] == 'n'))
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 3] == 'n' && (argument[arg_counter + 2] == 'e' || argument[arg_counter + 4] == 'e') && !(argument[arg_counter + 2] == 'n' || argument[arg_counter + 4] == 'n'))
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 4] == 'n' && (argument[arg_counter + 3] == 'e' || argument[arg_counter + 5] == 'e') && !(argument[arg_counter + 3] == 'n' || argument[arg_counter + 5] == 'n'))
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 5] == 'n' && (argument[arg_counter + 4] == 'e' || argument[arg_counter + 6] == 'e') && !(argument[arg_counter + 4] == 'n' || argument[arg_counter + 6] == 'n'))
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 1] == 'e' && (argument[arg_counter + 2] == 'n' || argument[arg_counter + 2] == 'm') && argument[arg_counter + 3] == '\0')
{
if (show_system_messages) printf("\npoint past_n+emn");
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else
{
if (nasal_infix_counter_mn == 0)
{
// Do nothing
nasal_infix_counter_mn++;
}
else
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
}
}
else if (!(argument[arg_counter - 1] == '\0' || (argument[arg_counter - 2] == '\0' && argument[arg_counter - 1] == 'e')) && argument[arg_counter] == 'm' && (argument[arg_counter - 1] == 'e' || argument[arg_counter + 1] == 'e') && !(argument[arg_counter - 1] == 'm' || argument[arg_counter + 1] == 'm'))
{
if (argument[arg_counter + 2] == 'm' && (argument[arg_counter + 1] == 'e' || argument[arg_counter + 3] == 'e') && !(argument[arg_counter + 1] == 'n' || argument[arg_counter + 3] == 'n'))
{
if (show_system_messages) printf("\npoint past_m2+m");
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 3] == 'm' && (argument[arg_counter + 2] == 'e' || argument[arg_counter + 4] == 'e') && !(argument[arg_counter + 2] == 'n' || argument[arg_counter + 4] == 'n'))
{
if (show_system_messages) printf("\npoint past_m3+m");
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 4] == 'm' && (argument[arg_counter + 3] == 'e' || argument[arg_counter + 5] == 'e') && !(argument[arg_counter + 3] == 'n' || argument[arg_counter + 5] == 'n'))
{
if (show_system_messages) printf("\npoint past_m4+m");
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 5] == 'm' && (argument[arg_counter + 4] == 'e' || argument[arg_counter + 6] == 'e') && !(argument[arg_counter + 4] == 'n' || argument[arg_counter + 6] == 'n'))
{
if (show_system_messages) printf("\npoint past_m5+m");
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 1] == 'e' && (argument[arg_counter + 2] == 'n' || argument[arg_counter + 2] == 'm') && argument[arg_counter + 3] == '\0')
{
if (show_system_messages) printf("\npoint past_m+emn");
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else
{
if (nasal_infix_counter_mn == 0)
{
if (show_system_messages) printf("\npoint past_m_do nothing");
// Do nothing
nasal_infix_counter_mn++;
}
else
{
if (show_system_messages) printf("\npoint past_m_else");
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
}
}
else
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
}
}
else if (check_ei())
{
GOTO_EI:
word_counter = 0;
for (arg_counter = 0; arg_counter < strlen(argument) ; arg_counter++)
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'i')
{
if (argument[arg_counter + 2] == 'e' && argument[arg_counter + 3] == 'i')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 3] == 'e' && argument[arg_counter + 4] == 'i')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 4] == 'e' && argument[arg_counter + 5] == 'i')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 5] == 'e' && argument[arg_counter + 6] == 'i')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 6] == 'e' && argument[arg_counter + 7] == 'i')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else
{
past_basis[arg_counter] = 'i';
}
}
else
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
}
}
else if (check_eu())
{
GOTO_EU:
word_counter = 0;
for (arg_counter = 0; arg_counter < strlen(argument) ; arg_counter++)
{
if (argument[arg_counter] == 'e' && argument[arg_counter + 1] == 'u')
{
if (argument[arg_counter + 2] == 'e' && argument[arg_counter + 3] == 'u')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 3] == 'e' && argument[arg_counter + 4] == 'u')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 4] == 'e' && argument[arg_counter + 5] == 'u')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 5] == 'e' && argument[arg_counter + 6] == 'u')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else if (argument[arg_counter + 6] == 'e' && argument[arg_counter + 7] == 'u')
{
past_basis[word_counter] = argument[arg_counter];
word_counter++;
}
else