Grammalecte  Diff

Differences From Artifact [f482d01042]:

To Artifact [03f1f86c56]:


355
356
357
358
359
360
361
362

363
364
365
366
367
368
369
355
356
357
358
359
360
361

362
363
364
365
366
367
368
369







-
+







            sDescription = dVars['dic_personal_description']
        lex_build.build(spfLexSrc, dVars['lang'], dVars['lang_name'], sfDictDst, bJavaScript, sDicName, sDescription, "", dVars['stemming_method'], int(dVars['fsa_method']))


def extraTest (sLang):
    "test grammar checker with files in <gc_lang/xx/tests>"
    if os.path.isdir(f"gc_lang/{sLang}/tests"):
        print(">>>>>>>>>> EXTRA TESTS: parsing texts in <gc_lang/{sLang}/tests>\n")
        print(f">>>>>>>>>> EXTRA TESTS: parsing texts in <gc_lang/{sLang}/tests>\n")
        grammalecte = importlib.import_module("grammalecte")
        oGrammarChecker = grammalecte.GrammarChecker(sLang)
        for sf in os.listdir(f"gc_lang/{sLang}/tests"):
            if sf.startswith("test_") and sf.endswith(".txt"):
                spf = f"gc_lang/{sLang}/tests/" + sf
                with open(spf, "r", encoding="utf-8") as hSrc:
                    print(f"\n>>>>>>>>>> TEST TEXT: {spf} <<<<<<<<<<\n")