From aacf6945fbc370b68178d50da31d4cb7a4646935 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 22 Sep 2008 11:49:15 +0000 Subject: [PATCH] moved lib/next-resource to next-lib/src, to enable linking with next-lib as value of GF_LIB_PATH --- lib/next-resource/README-1.5 | 40 -- lib/next-resource/hindi/AdjectiveHin.gf | 36 -- lib/next-resource/hindi/AdverbHin.gf | 20 - lib/next-resource/hindi/AllHin.gf | 3 - lib/next-resource/hindi/AllHinAbs.gf | 1 - lib/next-resource/hindi/BackwardHin.gf | 76 --- lib/next-resource/hindi/CatHin.gf | 90 --- lib/next-resource/hindi/ConjunctionHin.gf | 37 -- lib/next-resource/hindi/GrammarHin.gf | 21 - lib/next-resource/hindi/IdiomHin.gf | 30 - lib/next-resource/hindi/IrregHin.gf | 181 ------ lib/next-resource/hindi/LangHin.gf | 10 - lib/next-resource/hindi/LexiconHin.gf | 375 ------------ lib/next-resource/hindi/MorphoHin.gf | 196 ------ lib/next-resource/hindi/NounHin.gf | 121 ---- lib/next-resource/hindi/NumeralHin.gf | 95 --- lib/next-resource/hindi/ParadigmsHin.gf | 556 ------------------ lib/next-resource/hindi/PhraseHin.gf | 24 - lib/next-resource/hindi/QuestionHin.gf | 55 -- lib/next-resource/hindi/RelativeHin.gf | 54 -- lib/next-resource/hindi/ResHin.gf | 300 ---------- lib/next-resource/hindi/SentenceHin.gf | 66 --- lib/next-resource/hindi/StructuralHin.gf | 132 ----- lib/next-resource/hindi/VerbHin.gf | 50 -- {lib/next-resource => next-lib/src}/Make.hs | 0 .../src}/abstract/Adjective.gf | 0 .../src}/abstract/Adverb.gf | 0 .../src}/abstract/Backward.gf | 0 .../src}/abstract/Cat.gf | 0 .../src}/abstract/Common.gf | 0 .../src}/abstract/Conjunction.gf | 0 .../src}/abstract/Extra.gf | 0 .../src}/abstract/Grammar.gf | 0 .../src}/abstract/Idiom.gf | 0 .../src}/abstract/Lang.gf | 0 .../src}/abstract/Lexicon.gf | 0 .../src}/abstract/Noun.gf | 0 .../src}/abstract/Numeral.gf | 0 .../src}/abstract/Phrase.gf | 0 .../src}/abstract/Question.gf | 0 .../src}/abstract/Relative.gf | 0 .../src}/abstract/Sentence.gf | 0 .../src}/abstract/Structural.gf | 0 .../src}/abstract/Symbol.gf | 0 .../src}/abstract/Text.gf | 0 .../src}/abstract/Verb.gf | 0 .../src}/api/Combinators.gf | 0 .../src}/api/CombinatorsAra.gf | 0 .../src}/api/CombinatorsBul.gf | 0 .../src}/api/CombinatorsCat.gf | 0 .../src}/api/CombinatorsDan.gf | 0 .../src}/api/CombinatorsEng.gf | 0 .../src}/api/CombinatorsFin.gf | 0 .../src}/api/CombinatorsFre.gf | 0 .../src}/api/CombinatorsGer.gf | 0 .../src}/api/CombinatorsHin.gf | 0 .../src}/api/CombinatorsIna.gf | 0 .../src}/api/CombinatorsIta.gf | 0 .../src}/api/CombinatorsNor.gf | 0 .../src}/api/CombinatorsRus.gf | 0 .../src}/api/CombinatorsSpa.gf | 0 .../src}/api/CombinatorsSwe.gf | 0 .../src}/api/CombinatorsTha.gf | 0 .../src}/api/Constructors.gf | 0 .../src}/api/ConstructorsBul.gf | 0 .../src}/api/ConstructorsCat.gf | 0 .../src}/api/ConstructorsDan.gf | 0 .../src}/api/ConstructorsEng.gf | 0 .../src}/api/ConstructorsFin.gf | 0 .../src}/api/ConstructorsFre.gf | 0 .../src}/api/ConstructorsGer.gf | 0 .../src}/api/ConstructorsIta.gf | 0 .../src}/api/ConstructorsNor.gf | 0 .../src}/api/ConstructorsRus.gf | 0 .../src}/api/ConstructorsSpa.gf | 0 .../src}/api/ConstructorsSwe.gf | 0 .../src}/api/Symbolic.gf | 0 .../src}/api/SymbolicEng.gf | 0 .../src}/api/Syntax.gf | 0 .../src}/api/SyntaxBul.gf | 0 .../src}/api/SyntaxCat.gf | 0 .../src}/api/SyntaxDan.gf | 0 .../src}/api/SyntaxEng.gf | 0 .../src}/api/SyntaxFin.gf | 0 .../src}/api/SyntaxFre.gf | 0 .../src}/api/SyntaxGer.gf | 0 .../src}/api/SyntaxIta.gf | 0 .../src}/api/SyntaxNor.gf | 0 .../src}/api/SyntaxRus.gf | 0 .../src}/api/SyntaxSpa.gf | 0 .../src}/api/SyntaxSwe.gf | 0 .../src}/api/TryBul.gf | 0 .../src}/api/TryCat.gf | 0 .../src}/api/TryDan.gf | 0 .../src}/api/TryEng.gf | 0 .../src}/api/TryFin.gf | 0 .../src}/api/TryFre.gf | 0 .../src}/api/TryGer.gf | 0 .../src}/api/TryIta.gf | 0 .../src}/api/TryNor.gf | 0 .../src}/api/TryRus.gf | 0 .../src}/api/TrySpa.gf | 0 .../src}/api/TrySwe.gf | 0 .../src}/catalan/AdjectiveCat.gf | 0 .../src}/catalan/AdverbCat.gf | 0 .../src}/catalan/AllCat.gf | 0 .../src}/catalan/AllCatAbs.gf | 0 .../src}/catalan/BeschCat.gf | 0 .../src}/catalan/CatCat.gf | 0 .../src}/catalan/ConjunctionCat.gf | 0 .../src}/catalan/DiffCat.gf | 0 .../src}/catalan/ExtraCat.gf | 0 .../src}/catalan/ExtraCatAbs.gf | 0 .../src}/catalan/ExtraRomanceCat.gf | 0 .../src}/catalan/GrammarCat.gf | 0 .../src}/catalan/IdiomCat.gf | 0 .../src}/catalan/IrregCat.gf | 0 .../src}/catalan/IrregCatAbs.gf | 0 .../src}/catalan/LangCat.gf | 0 .../src}/catalan/LexiconCat.gf | 0 .../src}/catalan/MorphoCat.gf | 0 .../src}/catalan/NounCat.gf | 0 .../src}/catalan/NumeralCat.gf | 0 .../src}/catalan/ParadigmsCat.gf | 0 .../src}/catalan/PhonoCat.gf | 0 .../src}/catalan/PhraseCat.gf | 0 .../src}/catalan/QuestionCat.gf | 0 .../src}/catalan/RelativeCat.gf | 0 .../src}/catalan/ResCat.gf | 0 .../src}/catalan/SentenceCat.gf | 0 .../src}/catalan/StructuralCat.gf | 0 .../src}/catalan/VerbCat.gf | 0 .../src}/common/CommonX.gf | 0 .../src}/common/ConstructX.gf | 0 .../src}/common/Overload.gf | 0 .../src}/common/ParamX.gf | 0 .../src}/common/TenseX.gf | 0 .../src}/common/TextX.gf | 0 .../src}/danish/AdjectiveDan.gf | 0 .../src}/danish/AdverbDan.gf | 0 .../src}/danish/AllDan.gf | 0 .../src}/danish/AllDanAbs.gf | 0 .../src}/danish/CatDan.gf | 0 .../src}/danish/ConjunctionDan.gf | 0 .../src}/danish/DiffDan.gf | 0 .../src}/danish/ExtraDan.gf | 0 .../src}/danish/ExtraDanAbs.gf | 0 .../src}/danish/ExtraScandDan.gf | 0 .../src}/danish/GrammarDan.gf | 0 .../src}/danish/IdiomDan.gf | 0 .../src}/danish/IrregDan.gf | 0 .../src}/danish/IrregDanAbs.gf | 0 .../src}/danish/LangDan.gf | 0 .../src}/danish/LexiconDan.gf | 0 .../src}/danish/MathDan.gf | 0 .../src}/danish/MorphoDan.gf | 0 .../src}/danish/NounDan.gf | 0 .../src}/danish/NumeralDan.gf | 0 .../src}/danish/ParadigmsDan.gf | 0 .../src}/danish/PhraseDan.gf | 0 .../src}/danish/QuestionDan.gf | 0 .../src}/danish/RelativeDan.gf | 0 .../src}/danish/ResDan.gf | 0 .../src}/danish/SentenceDan.gf | 0 .../src}/danish/StructuralDan.gf | 0 .../src}/danish/VerbDan.gf | 0 .../src}/demo/Add.gf | 0 .../src}/demo/Clause.gf | 0 .../src}/demo/ClauseAra.gf | 0 .../src}/demo/ClauseBul.gf | 0 .../src}/demo/ClauseCat.gf | 0 .../src}/demo/ClauseDan.gf | 0 .../src}/demo/ClauseEng.gf | 0 .../src}/demo/ClauseFin.gf | 0 .../src}/demo/ClauseFre.gf | 0 .../src}/demo/ClauseGer.gf | 0 .../src}/demo/ClauseI.gf | 0 .../src}/demo/ClauseIta.gf | 0 .../src}/demo/ClauseNor.gf | 0 .../src}/demo/ClauseRus.gf | 0 .../src}/demo/ClauseSpa.gf | 0 .../src}/demo/ClauseSwe.gf | 0 .../src}/demo/Demo.gf | 0 .../src}/demo/DemoAra.gf | 0 .../src}/demo/DemoBul.gf | 0 .../src}/demo/DemoCat.gf | 0 .../src}/demo/DemoDan.gf | 0 .../src}/demo/DemoEng.gf | 0 .../src}/demo/DemoFin.gf | 0 .../src}/demo/DemoFre.gf | 0 .../src}/demo/DemoGer.gf | 0 .../src}/demo/DemoHin.gf | 0 .../src}/demo/DemoIna.gf | 0 .../src}/demo/DemoIta.gf | 0 .../src}/demo/DemoJ.gf | 0 .../src}/demo/DemoJEng.gf | 0 .../src}/demo/DemoNor.gf | 0 .../src}/demo/DemoRus.gf | 0 .../src}/demo/DemoSpa.gf | 0 .../src}/demo/DemoSwe.gf | 0 .../src}/demo/DemoTha.gf | 0 .../src}/english/AdjectiveEng.gf | 0 .../src}/english/AdverbEng.gf | 0 .../src}/english/AllEng.gf | 0 .../src}/english/AllEngAbs.gf | 0 .../src}/english/BackwardEng.gf | 0 .../src}/english/CatEng.gf | 0 .../src}/english/ConjunctionEng.gf | 0 .../src}/english/ExtraEng.gf | 0 .../src}/english/ExtraEngAbs.gf | 0 .../src}/english/GrammarEng.gf | 0 .../src}/english/IdiomEng.gf | 0 .../src}/english/IrregEng.gf | 0 .../src}/english/IrregEngAbs.gf | 0 .../src}/english/LangEng.gf | 0 .../src}/english/LexiconEng.gf | 0 .../src}/english/MorphoEng.gf | 0 .../src}/english/NounEng.gf | 0 .../src}/english/NumeralEng.gf | 0 .../src}/english/OverloadEng.gf | 0 .../src}/english/ParadigmsEng.gf | 0 .../src}/english/PhraseEng.gf | 0 .../src}/english/QuestionEng.gf | 0 .../src}/english/RelativeEng.gf | 0 .../src}/english/ResEng.gf | 0 .../src}/english/SentenceEng.gf | 0 .../src}/english/StructuralEng.gf | 0 .../src}/english/SymbolEng.gf | 0 .../src}/english/VerbEng.gf | 0 .../src}/exx-resource.gft | 0 .../src}/finnish/AdjectiveFin.gf | 0 .../src}/finnish/AdverbFin.gf | 0 .../src}/finnish/AllFin.gf | 0 .../src}/finnish/AllFinAbs.gf | 0 .../src}/finnish/CatFin.gf | 0 .../src}/finnish/ConjunctionFin.gf | 0 .../src}/finnish/ExtraFin.gf | 0 .../src}/finnish/ExtraFinAbs.gf | 0 .../src}/finnish/GrammarFin.gf | 0 .../src}/finnish/IdiomFin.gf | 0 .../src}/finnish/LangFin.gf | 0 .../src}/finnish/LexiconFin.gf | 0 .../src}/finnish/MorphoFin.gf | 0 .../src}/finnish/NounFin.gf | 0 .../src}/finnish/NumeralFin.gf | 0 .../src}/finnish/ParadigmsFin.gf | 0 .../src}/finnish/PhraseFin.gf | 0 .../src}/finnish/QuestionFin.gf | 0 .../src}/finnish/RelativeFin.gf | 0 .../src}/finnish/ResFin.gf | 0 .../src}/finnish/SentenceFin.gf | 0 .../src}/finnish/StructuralFin.gf | 0 .../src}/finnish/VerbFin.gf | 0 .../src}/french/AdjectiveFre.gf | 0 .../src}/french/AdverbFre.gf | 0 .../src}/french/AllFre.gf | 0 .../src}/french/AllFreAbs.gf | 0 .../src}/french/BeschFre.gf | 0 .../src}/french/CatFre.gf | 0 .../src}/french/ConjunctionFre.gf | 0 .../src}/french/DiffFre.gf | 0 .../src}/french/ExtraFre.gf | 0 .../src}/french/ExtraFreAbs.gf | 0 .../src}/french/ExtraRomanceFre.gf | 0 .../src}/french/GrammarFre.gf | 0 .../src}/french/IdiomFre.gf | 0 .../src}/french/IrregFre.gf | 0 .../src}/french/IrregFreAbs.gf | 0 .../src}/french/LangFre.gf | 0 .../src}/french/LexiconFre.gf | 0 .../src}/french/MorphoFre.gf | 0 .../src}/french/NounFre.gf | 0 .../src}/french/NumeralFre.gf | 0 .../src}/french/ParadigmsFre.gf | 0 .../src}/french/PhonoFre.gf | 0 .../src}/french/PhraseFre.gf | 0 .../src}/french/QuestionFre.gf | 0 .../src}/french/RelativeFre.gf | 0 .../src}/french/ResFre.gf | 0 .../src}/french/SentenceFre.gf | 0 .../src}/french/StructuralFre.gf | 0 .../src}/french/VerbFre.gf | 0 .../src}/italian/AdjectiveIta.gf | 0 .../src}/italian/AdverbIta.gf | 0 .../src}/italian/AllIta.gf | 0 .../src}/italian/AllItaAbs.gf | 0 .../src}/italian/BeschIta.gf | 0 .../src}/italian/CatIta.gf | 0 .../src}/italian/ConjunctionIta.gf | 0 .../src}/italian/DiffIta.gf | 0 .../src}/italian/ExtraIta.gf | 0 .../src}/italian/ExtraItaAbs.gf | 0 .../src}/italian/ExtraRomanceIta.gf | 0 .../src}/italian/GrammarIta.gf | 0 .../src}/italian/IdiomIta.gf | 0 .../src}/italian/LangIta.gf | 0 .../src}/italian/LexiconIta.gf | 0 .../src}/italian/MorphoIta.gf | 0 .../src}/italian/NounIta.gf | 0 .../src}/italian/NumeralIta.gf | 0 .../src}/italian/ParadigmsIta.gf | 0 .../src}/italian/PhonoIta.gf | 0 .../src}/italian/PhraseIta.gf | 0 .../src}/italian/QuestionIta.gf | 0 .../src}/italian/RelativeIta.gf | 0 .../src}/italian/ResIta.gf | 0 .../src}/italian/SentenceIta.gf | 0 .../src}/italian/StructuralIta.gf | 0 .../src}/italian/VerbIta.gf | 0 .../src}/latin/AdjectiveLat.gf | 0 .../src}/latin/AdverbLat.gf | 0 .../src}/latin/AllEngAbs.gf | 0 .../src}/latin/AllLat.gf | 0 .../src}/latin/BackwardLat.gf | 0 .../src}/latin/CatLat.gf | 0 .../src}/latin/ConjunctionLat.gf | 0 .../src}/latin/ExtraEngAbs.gf | 0 .../src}/latin/ExtraLat.gf | 0 .../src}/latin/GrammarLat.gf | 0 .../src}/latin/IdiomLat.gf | 0 .../src}/latin/IrregEngAbs.gf | 0 .../src}/latin/IrregLat.gf | 0 .../src}/latin/LangLat.gf | 0 .../src}/latin/LexiconLat.gf | 0 .../src}/latin/MorphoLat.gf | 0 .../src}/latin/NounLat.gf | 0 .../src}/latin/NumeralLat.gf | 0 .../src}/latin/OverloadLat.gf | 0 .../src}/latin/ParadigmsLat.gf | 0 .../src}/latin/PhraseLat.gf | 0 .../src}/latin/QuestionLat.gf | 0 .../src}/latin/RelativeLat.gf | 0 .../src}/latin/ResLat.gf | 0 .../src}/latin/SentenceLat.gf | 0 .../src}/latin/StructuralLat.gf | 0 .../src}/latin/SymbolLat.gf | 0 .../src}/latin/VerbLat.gf | 0 .../src}/latin/notes.txt | 0 .../src}/norwegian/AdjectiveNor.gf | 0 .../src}/norwegian/AdverbNor.gf | 0 .../src}/norwegian/AllNor.gf | 0 .../src}/norwegian/AllNorAbs.gf | 0 .../src}/norwegian/CatNor.gf | 0 .../src}/norwegian/ConjunctionNor.gf | 0 .../src}/norwegian/DiffNor.gf | 0 .../src}/norwegian/ExtraNor.gf | 0 .../src}/norwegian/ExtraNorAbs.gf | 0 .../src}/norwegian/ExtraScandNor.gf | 0 .../src}/norwegian/GrammarNor.gf | 0 .../src}/norwegian/IdiomNor.gf | 0 .../src}/norwegian/IrregNor.gf | 0 .../src}/norwegian/IrregNorAbs.gf | 0 .../src}/norwegian/LangNor.gf | 0 .../src}/norwegian/LexiconNor.gf | 0 .../src}/norwegian/MathNor.gf | 0 .../src}/norwegian/MorphoNor.gf | 0 .../src}/norwegian/NounNor.gf | 0 .../src}/norwegian/NumeralNor.gf | 0 .../src}/norwegian/ParadigmsNor.gf | 0 .../src}/norwegian/PhraseNor.gf | 0 .../src}/norwegian/QuestionNor.gf | 0 .../src}/norwegian/RelativeNor.gf | 0 .../src}/norwegian/ResNor.gf | 0 .../src}/norwegian/SentenceNor.gf | 0 .../src}/norwegian/StructuralNor.gf | 0 .../src}/norwegian/VerbNor.gf | 0 next-lib/src/prelude/Coordination.gf | 129 ++++ next-lib/src/prelude/Formal.gf | 54 ++ next-lib/src/prelude/HTML.gf | 8 + next-lib/src/prelude/Latex.gf | 12 + next-lib/src/prelude/Precedence.gf | 117 ++++ next-lib/src/prelude/Predef.gf | 37 ++ next-lib/src/prelude/PredefAbs.gf | 4 + next-lib/src/prelude/PredefCnc.gf | 4 + next-lib/src/prelude/Prelude.gf | 142 +++++ .../src}/romance/AdjectiveRomance.gf | 0 .../src}/romance/AdverbRomance.gf | 0 .../src}/romance/CatRomance.gf | 0 .../src}/romance/CommonRomance.gf | 0 .../src}/romance/ConjunctionRomance.gf | 0 .../src}/romance/DiffRomance.gf | 0 .../src}/romance/ExtRomance.gf | 0 .../src}/romance/ExtraRomance.gf | 0 .../src}/romance/ExtraRomanceAbs.gf | 0 .../src}/romance/NounRomance.gf | 0 .../src}/romance/PhraseRomance.gf | 0 .../src}/romance/QuestionRomance.gf | 0 .../src}/romance/RelativeRomance.gf | 0 .../src}/romance/ResRomance.gf | 0 .../src}/romance/SentenceRomance.gf | 0 .../src}/romance/VerbRomance.gf | 0 .../src}/scandinavian/AdjectiveScand.gf | 0 .../src}/scandinavian/AdverbScand.gf | 0 .../src}/scandinavian/CatScand.gf | 0 .../src}/scandinavian/CommonScand.gf | 0 .../src}/scandinavian/ConjunctionScand.gf | 0 .../src}/scandinavian/DiffScand.gf | 0 .../src}/scandinavian/ExtEngAbs.gf | 0 .../src}/scandinavian/ExtraScand.gf | 0 .../src}/scandinavian/ExtraScandAbs.gf | 0 .../src}/scandinavian/NounScand.gf | 0 .../src}/scandinavian/PhraseScand.gf | 0 .../src}/scandinavian/QuestionScand.gf | 0 .../src}/scandinavian/RelativeScand.gf | 0 .../src}/scandinavian/ResScand.gf | 0 .../src}/scandinavian/SentenceScand.gf | 0 .../src}/scandinavian/VerbScand.gf | 0 .../src}/spanish/AdjectiveSpa.gf | 0 .../src}/spanish/AdverbSpa.gf | 0 .../src}/spanish/AllSpa.gf | 0 .../src}/spanish/AllSpaAbs.gf | 0 .../src}/spanish/BeschSpa.gf | 0 .../src}/spanish/CatSpa.gf | 0 .../src}/spanish/ConjunctionSpa.gf | 0 .../src}/spanish/DiffSpa.gf | 0 .../src}/spanish/ExtraRomanceSpa.gf | 0 .../src}/spanish/ExtraSpa.gf | 0 .../src}/spanish/ExtraSpaAbs.gf | 0 .../src}/spanish/GrammarSpa.gf | 0 .../src}/spanish/IdiomSpa.gf | 0 .../src}/spanish/IrregSpa.gf | 0 .../src}/spanish/IrregSpaAbs.gf | 0 .../src}/spanish/LangSpa.gf | 0 .../src}/spanish/LexiconSpa.gf | 0 .../src}/spanish/MorphoSpa.gf | 0 .../src}/spanish/NounSpa.gf | 0 .../src}/spanish/NumeralSpa.gf | 0 .../src}/spanish/ParadigmsSpa.gf | 0 .../src}/spanish/PhonoSpa.gf | 0 .../src}/spanish/PhraseSpa.gf | 0 .../src}/spanish/QuestionSpa.gf | 0 .../src}/spanish/RelativeSpa.gf | 0 .../src}/spanish/ResSpa.gf | 0 .../src}/spanish/SentenceSpa.gf | 0 .../src}/spanish/StructuralSpa.gf | 0 .../src}/spanish/TextSpa.gf | 0 .../src}/spanish/VerbSpa.gf | 0 .../src}/swedish/AdjectiveSwe.gf | 0 .../src}/swedish/AdverbSwe.gf | 0 .../src}/swedish/AllSwe.gf | 0 .../src}/swedish/AllSweAbs.gf | 0 .../src}/swedish/CatSwe.gf | 0 .../src}/swedish/ConjunctionSwe.gf | 0 .../src}/swedish/DiffSwe.gf | 0 .../src}/swedish/ExtraScandSwe.gf | 0 .../src}/swedish/ExtraSwe.gf | 0 .../src}/swedish/ExtraSweAbs.gf | 0 .../src}/swedish/GrammarSwe.gf | 0 .../src}/swedish/IdiomSwe.gf | 0 .../src}/swedish/IrregSwe.gf | 0 .../src}/swedish/IrregSweAbs.gf | 0 .../src}/swedish/LangSwe.gf | 0 .../src}/swedish/LexiconSwe.gf | 0 .../src}/swedish/MorphoSwe.gf | 0 .../src}/swedish/NounSwe.gf | 0 .../src}/swedish/NumeralSwe.gf | 0 .../src}/swedish/ParadigmsSwe.gf | 0 .../src}/swedish/PhraseSwe.gf | 0 .../src}/swedish/QuestionSwe.gf | 0 .../src}/swedish/RelativeSwe.gf | 0 .../src}/swedish/ResSwe.gf | 0 .../src}/swedish/SentenceSwe.gf | 0 .../src}/swedish/StructuralSwe.gf | 0 .../src}/swedish/VerbSwe.gf | 0 src/morpho-server/MorphoServer.hs | 8 +- 465 files changed, 510 insertions(+), 2574 deletions(-) delete mode 100644 lib/next-resource/README-1.5 delete mode 100644 lib/next-resource/hindi/AdjectiveHin.gf delete mode 100644 lib/next-resource/hindi/AdverbHin.gf delete mode 100644 lib/next-resource/hindi/AllHin.gf delete mode 100644 lib/next-resource/hindi/AllHinAbs.gf delete mode 100644 lib/next-resource/hindi/BackwardHin.gf delete mode 100644 lib/next-resource/hindi/CatHin.gf delete mode 100644 lib/next-resource/hindi/ConjunctionHin.gf delete mode 100644 lib/next-resource/hindi/GrammarHin.gf delete mode 100644 lib/next-resource/hindi/IdiomHin.gf delete mode 100644 lib/next-resource/hindi/IrregHin.gf delete mode 100644 lib/next-resource/hindi/LangHin.gf delete mode 100644 lib/next-resource/hindi/LexiconHin.gf delete mode 100644 lib/next-resource/hindi/MorphoHin.gf delete mode 100644 lib/next-resource/hindi/NounHin.gf delete mode 100644 lib/next-resource/hindi/NumeralHin.gf delete mode 100644 lib/next-resource/hindi/ParadigmsHin.gf delete mode 100644 lib/next-resource/hindi/PhraseHin.gf delete mode 100644 lib/next-resource/hindi/QuestionHin.gf delete mode 100644 lib/next-resource/hindi/RelativeHin.gf delete mode 100644 lib/next-resource/hindi/ResHin.gf delete mode 100644 lib/next-resource/hindi/SentenceHin.gf delete mode 100644 lib/next-resource/hindi/StructuralHin.gf delete mode 100644 lib/next-resource/hindi/VerbHin.gf rename {lib/next-resource => next-lib/src}/Make.hs (100%) rename {lib/next-resource => next-lib/src}/abstract/Adjective.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Adverb.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Backward.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Cat.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Common.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Conjunction.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Extra.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Grammar.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Idiom.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Lang.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Lexicon.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Noun.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Numeral.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Phrase.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Question.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Relative.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Sentence.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Structural.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Symbol.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Text.gf (100%) rename {lib/next-resource => next-lib/src}/abstract/Verb.gf (100%) rename {lib/next-resource => next-lib/src}/api/Combinators.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsAra.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsBul.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsCat.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsDan.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsEng.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsFin.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsFre.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsGer.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsHin.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsIna.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsIta.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsNor.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsRus.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsSpa.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsSwe.gf (100%) rename {lib/next-resource => next-lib/src}/api/CombinatorsTha.gf (100%) rename {lib/next-resource => next-lib/src}/api/Constructors.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsBul.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsCat.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsDan.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsEng.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsFin.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsFre.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsGer.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsIta.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsNor.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsRus.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsSpa.gf (100%) rename {lib/next-resource => next-lib/src}/api/ConstructorsSwe.gf (100%) rename {lib/next-resource => next-lib/src}/api/Symbolic.gf (100%) rename {lib/next-resource => next-lib/src}/api/SymbolicEng.gf (100%) rename {lib/next-resource => next-lib/src}/api/Syntax.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxBul.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxCat.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxDan.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxEng.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxFin.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxFre.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxGer.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxIta.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxNor.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxRus.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxSpa.gf (100%) rename {lib/next-resource => next-lib/src}/api/SyntaxSwe.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryBul.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryCat.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryDan.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryEng.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryFin.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryFre.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryGer.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryIta.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryNor.gf (100%) rename {lib/next-resource => next-lib/src}/api/TryRus.gf (100%) rename {lib/next-resource => next-lib/src}/api/TrySpa.gf (100%) rename {lib/next-resource => next-lib/src}/api/TrySwe.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/AdjectiveCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/AdverbCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/AllCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/AllCatAbs.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/BeschCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/CatCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/ConjunctionCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/DiffCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/ExtraCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/ExtraCatAbs.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/ExtraRomanceCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/GrammarCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/IdiomCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/IrregCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/IrregCatAbs.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/LangCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/LexiconCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/MorphoCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/NounCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/NumeralCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/ParadigmsCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/PhonoCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/PhraseCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/QuestionCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/RelativeCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/ResCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/SentenceCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/StructuralCat.gf (100%) rename {lib/next-resource => next-lib/src}/catalan/VerbCat.gf (100%) rename {lib/next-resource => next-lib/src}/common/CommonX.gf (100%) rename {lib/next-resource => next-lib/src}/common/ConstructX.gf (100%) rename {lib/next-resource => next-lib/src}/common/Overload.gf (100%) rename {lib/next-resource => next-lib/src}/common/ParamX.gf (100%) rename {lib/next-resource => next-lib/src}/common/TenseX.gf (100%) rename {lib/next-resource => next-lib/src}/common/TextX.gf (100%) rename {lib/next-resource => next-lib/src}/danish/AdjectiveDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/AdverbDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/AllDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/AllDanAbs.gf (100%) rename {lib/next-resource => next-lib/src}/danish/CatDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/ConjunctionDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/DiffDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/ExtraDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/ExtraDanAbs.gf (100%) rename {lib/next-resource => next-lib/src}/danish/ExtraScandDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/GrammarDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/IdiomDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/IrregDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/IrregDanAbs.gf (100%) rename {lib/next-resource => next-lib/src}/danish/LangDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/LexiconDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/MathDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/MorphoDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/NounDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/NumeralDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/ParadigmsDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/PhraseDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/QuestionDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/RelativeDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/ResDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/SentenceDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/StructuralDan.gf (100%) rename {lib/next-resource => next-lib/src}/danish/VerbDan.gf (100%) rename {lib/next-resource => next-lib/src}/demo/Add.gf (100%) rename {lib/next-resource => next-lib/src}/demo/Clause.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseAra.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseBul.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseCat.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseDan.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseEng.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseFin.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseFre.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseGer.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseI.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseIta.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseNor.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseRus.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseSpa.gf (100%) rename {lib/next-resource => next-lib/src}/demo/ClauseSwe.gf (100%) rename {lib/next-resource => next-lib/src}/demo/Demo.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoAra.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoBul.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoCat.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoDan.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoEng.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoFin.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoFre.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoGer.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoHin.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoIna.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoIta.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoJ.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoJEng.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoNor.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoRus.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoSpa.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoSwe.gf (100%) rename {lib/next-resource => next-lib/src}/demo/DemoTha.gf (100%) rename {lib/next-resource => next-lib/src}/english/AdjectiveEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/AdverbEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/AllEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/AllEngAbs.gf (100%) rename {lib/next-resource => next-lib/src}/english/BackwardEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/CatEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/ConjunctionEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/ExtraEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/ExtraEngAbs.gf (100%) rename {lib/next-resource => next-lib/src}/english/GrammarEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/IdiomEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/IrregEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/IrregEngAbs.gf (100%) rename {lib/next-resource => next-lib/src}/english/LangEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/LexiconEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/MorphoEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/NounEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/NumeralEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/OverloadEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/ParadigmsEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/PhraseEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/QuestionEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/RelativeEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/ResEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/SentenceEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/StructuralEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/SymbolEng.gf (100%) rename {lib/next-resource => next-lib/src}/english/VerbEng.gf (100%) rename {lib/next-resource => next-lib/src}/exx-resource.gft (100%) rename {lib/next-resource => next-lib/src}/finnish/AdjectiveFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/AdverbFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/AllFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/AllFinAbs.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/CatFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/ConjunctionFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/ExtraFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/ExtraFinAbs.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/GrammarFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/IdiomFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/LangFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/LexiconFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/MorphoFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/NounFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/NumeralFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/ParadigmsFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/PhraseFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/QuestionFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/RelativeFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/ResFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/SentenceFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/StructuralFin.gf (100%) rename {lib/next-resource => next-lib/src}/finnish/VerbFin.gf (100%) rename {lib/next-resource => next-lib/src}/french/AdjectiveFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/AdverbFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/AllFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/AllFreAbs.gf (100%) rename {lib/next-resource => next-lib/src}/french/BeschFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/CatFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/ConjunctionFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/DiffFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/ExtraFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/ExtraFreAbs.gf (100%) rename {lib/next-resource => next-lib/src}/french/ExtraRomanceFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/GrammarFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/IdiomFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/IrregFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/IrregFreAbs.gf (100%) rename {lib/next-resource => next-lib/src}/french/LangFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/LexiconFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/MorphoFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/NounFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/NumeralFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/ParadigmsFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/PhonoFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/PhraseFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/QuestionFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/RelativeFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/ResFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/SentenceFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/StructuralFre.gf (100%) rename {lib/next-resource => next-lib/src}/french/VerbFre.gf (100%) rename {lib/next-resource => next-lib/src}/italian/AdjectiveIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/AdverbIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/AllIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/AllItaAbs.gf (100%) rename {lib/next-resource => next-lib/src}/italian/BeschIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/CatIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/ConjunctionIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/DiffIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/ExtraIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/ExtraItaAbs.gf (100%) rename {lib/next-resource => next-lib/src}/italian/ExtraRomanceIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/GrammarIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/IdiomIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/LangIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/LexiconIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/MorphoIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/NounIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/NumeralIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/ParadigmsIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/PhonoIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/PhraseIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/QuestionIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/RelativeIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/ResIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/SentenceIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/StructuralIta.gf (100%) rename {lib/next-resource => next-lib/src}/italian/VerbIta.gf (100%) rename {lib/next-resource => next-lib/src}/latin/AdjectiveLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/AdverbLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/AllEngAbs.gf (100%) rename {lib/next-resource => next-lib/src}/latin/AllLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/BackwardLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/CatLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/ConjunctionLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/ExtraEngAbs.gf (100%) rename {lib/next-resource => next-lib/src}/latin/ExtraLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/GrammarLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/IdiomLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/IrregEngAbs.gf (100%) rename {lib/next-resource => next-lib/src}/latin/IrregLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/LangLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/LexiconLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/MorphoLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/NounLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/NumeralLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/OverloadLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/ParadigmsLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/PhraseLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/QuestionLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/RelativeLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/ResLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/SentenceLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/StructuralLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/SymbolLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/VerbLat.gf (100%) rename {lib/next-resource => next-lib/src}/latin/notes.txt (100%) rename {lib/next-resource => next-lib/src}/norwegian/AdjectiveNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/AdverbNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/AllNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/AllNorAbs.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/CatNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/ConjunctionNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/DiffNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/ExtraNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/ExtraNorAbs.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/ExtraScandNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/GrammarNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/IdiomNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/IrregNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/IrregNorAbs.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/LangNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/LexiconNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/MathNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/MorphoNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/NounNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/NumeralNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/ParadigmsNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/PhraseNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/QuestionNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/RelativeNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/ResNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/SentenceNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/StructuralNor.gf (100%) rename {lib/next-resource => next-lib/src}/norwegian/VerbNor.gf (100%) create mode 100644 next-lib/src/prelude/Coordination.gf create mode 100644 next-lib/src/prelude/Formal.gf create mode 100644 next-lib/src/prelude/HTML.gf create mode 100644 next-lib/src/prelude/Latex.gf create mode 100644 next-lib/src/prelude/Precedence.gf create mode 100644 next-lib/src/prelude/Predef.gf create mode 100644 next-lib/src/prelude/PredefAbs.gf create mode 100644 next-lib/src/prelude/PredefCnc.gf create mode 100644 next-lib/src/prelude/Prelude.gf rename {lib/next-resource => next-lib/src}/romance/AdjectiveRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/AdverbRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/CatRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/CommonRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/ConjunctionRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/DiffRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/ExtRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/ExtraRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/ExtraRomanceAbs.gf (100%) rename {lib/next-resource => next-lib/src}/romance/NounRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/PhraseRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/QuestionRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/RelativeRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/ResRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/SentenceRomance.gf (100%) rename {lib/next-resource => next-lib/src}/romance/VerbRomance.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/AdjectiveScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/AdverbScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/CatScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/CommonScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/ConjunctionScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/DiffScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/ExtEngAbs.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/ExtraScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/ExtraScandAbs.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/NounScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/PhraseScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/QuestionScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/RelativeScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/ResScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/SentenceScand.gf (100%) rename {lib/next-resource => next-lib/src}/scandinavian/VerbScand.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/AdjectiveSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/AdverbSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/AllSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/AllSpaAbs.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/BeschSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/CatSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/ConjunctionSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/DiffSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/ExtraRomanceSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/ExtraSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/ExtraSpaAbs.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/GrammarSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/IdiomSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/IrregSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/IrregSpaAbs.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/LangSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/LexiconSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/MorphoSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/NounSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/NumeralSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/ParadigmsSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/PhonoSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/PhraseSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/QuestionSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/RelativeSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/ResSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/SentenceSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/StructuralSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/TextSpa.gf (100%) rename {lib/next-resource => next-lib/src}/spanish/VerbSpa.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/AdjectiveSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/AdverbSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/AllSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/AllSweAbs.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/CatSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/ConjunctionSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/DiffSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/ExtraScandSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/ExtraSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/ExtraSweAbs.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/GrammarSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/IdiomSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/IrregSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/IrregSweAbs.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/LangSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/LexiconSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/MorphoSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/NounSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/NumeralSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/ParadigmsSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/PhraseSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/QuestionSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/RelativeSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/ResSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/SentenceSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/StructuralSwe.gf (100%) rename {lib/next-resource => next-lib/src}/swedish/VerbSwe.gf (100%) diff --git a/lib/next-resource/README-1.5 b/lib/next-resource/README-1.5 deleted file mode 100644 index a7869cc90..000000000 --- a/lib/next-resource/README-1.5 +++ /dev/null @@ -1,40 +0,0 @@ -GF Resource Grammar Library Version 1.5 - -This will be the next release of the library. - -If you have new contributions and bug fixes in 1.4 - please also carry over the changes -in 1.5! Preferably, work directly with 1.5. - -The Syntax and Paradigms APIs are supersets of the old ones - thus backward compatibility -is guaranteed for applications using them. This of course with the reservation that, since -the APIs may contain new functions, name clashes with other modules may result if names are -not qualified. - -Visible differences from 1.4: - -- Cat, Noun : Quant and Art fused ; Quant has both substantival and adjectival forms. This - is to eliminate the duplication of Quant and Art rules, and also to account for the different - forms some quantifiers, have when the word stands alone vs. is attached to an adjective. - For instance, in Italian, "that wine" is "quel vino", whereas "that" alone is "quello". - -- CommonX, Sentence : Tense and Ant fused. This is to leave room for the radically different - tense systems in different languages. However, the Syntax API still displays the - two-dimensional tense structure. - -- Mathematical is dropped as obsolete. Combinators and Symbolic together give a sufficient - interface for this kind of applications. - -- Combinators is included in Syntax. - - -To see the full change history, do - - GF/lib/next-resource% darcs changes . - -It starts with these two entries: - -Fri Sep 5 15:27:56 CEST 2008 aarne@cs.chalmers.se - * Temp = Tense + Ant in next-resource - -Fri Sep 5 15:12:47 CEST 2008 aarne@cs.chalmers.se - * starting next-resource by fusing Art and Quant in english and scandinavian; substantival forms added for e.g. possessive pronouns diff --git a/lib/next-resource/hindi/AdjectiveHin.gf b/lib/next-resource/hindi/AdjectiveHin.gf deleted file mode 100644 index b016a2b9d..000000000 --- a/lib/next-resource/hindi/AdjectiveHin.gf +++ /dev/null @@ -1,36 +0,0 @@ -concrete AdjectiveHin of Adjective = CatHin ** open ResHin, Prelude in { - - lin - - PositA a = a ; - --- ComparA a np = { --- s = \\_ => a.s ! AAdj Compar ++ "than" ++ np.s ! Nom ; --- isPre = False --- } ; --- ----- $SuperlA$ belongs to determiner syntax in $Noun$. --- --- ComplA2 a np = { --- s = \\_ => a.s ! AAdj Posit ++ a.c2 ++ np.s ! Acc ; --- isPre = False --- } ; --- --- ReflA2 a = { --- s = \\ag => a.s ! AAdj Posit ++ a.c2 ++ reflPron ! ag ; --- isPre = False --- } ; --- --- SentAP ap sc = { --- s = \\a => ap.s ! a ++ sc.s ; --- isPre = False --- } ; --- --- AdAP ada ap = { --- s = \\a => ada.s ++ ap.s ! a ; --- isPre = ap.isPre --- } ; --- --- UseA2 a = a ; --- -} diff --git a/lib/next-resource/hindi/AdverbHin.gf b/lib/next-resource/hindi/AdverbHin.gf deleted file mode 100644 index 96ac3242f..000000000 --- a/lib/next-resource/hindi/AdverbHin.gf +++ /dev/null @@ -1,20 +0,0 @@ -concrete AdverbHin of Adverb = CatHin ** open ResHin, Prelude in { --- --- lin --- PositAdvAdj a = {s = a.s ! AAdv} ; --- ComparAdvAdj cadv a np = { --- s = cadv.s ++ a.s ! AAdv ++ "than" ++ np.s ! Nom --- } ; --- ComparAdvAdjS cadv a s = { --- s = cadv.s ++ a.s ! AAdv ++ "than" ++ s.s --- } ; --- --- PrepNP prep np = {s = prep.s ++ np.s ! Acc} ; --- --- AdAdv = cc2 ; --- --- SubjS = cc2 ; --- --- AdnCAdv cadv = {s = cadv.s ++ "than"} ; --- -} diff --git a/lib/next-resource/hindi/AllHin.gf b/lib/next-resource/hindi/AllHin.gf deleted file mode 100644 index e0256e481..000000000 --- a/lib/next-resource/hindi/AllHin.gf +++ /dev/null @@ -1,3 +0,0 @@ ---# -path=.:../abstract:../common:prelude - -concrete AllHin of AllHinAbs = LangHin ; diff --git a/lib/next-resource/hindi/AllHinAbs.gf b/lib/next-resource/hindi/AllHinAbs.gf deleted file mode 100644 index 89cdaef54..000000000 --- a/lib/next-resource/hindi/AllHinAbs.gf +++ /dev/null @@ -1 +0,0 @@ -abstract AllHinAbs = Lang ; \ No newline at end of file diff --git a/lib/next-resource/hindi/BackwardHin.gf b/lib/next-resource/hindi/BackwardHin.gf deleted file mode 100644 index c880bcbfb..000000000 --- a/lib/next-resource/hindi/BackwardHin.gf +++ /dev/null @@ -1,76 +0,0 @@ ---concrete BackwardHin of Backward = CatHin ** open ResHin in { --- --- flags optimize=all_subs ; --- --- lin --- ----- A repository of obsolete constructs, needed for backward compatibility. ----- They create spurious ambiguities if used in combination with Lang. --- ----- from Verb 19/4/2008 --- --- ComplV2 v np = insertObj (\\_ => v.c2 ++ np.s ! Acc) (predV v) ; --- ComplV3 v np np2 = --- insertObj (\\_ => v.c2 ++ np.s ! Acc ++ v.c3 ++ np2.s ! Acc) (predV v) ; --- ComplV2V v np vp = --- insertObj (\\a => infVP v.isAux vp a) --- (insertObj (\\_ => v.c2 ++ np.s ! Acc) (predV v)) ; --- ComplV2S v np s = --- insertObj (\\_ => conjThat ++ s.s) --- (insertObj (\\_ => v.c2 ++ np.s ! Acc) (predV v)) ; --- ComplV2Q v np q = --- insertObj (\\_ => q.s ! QIndir) --- (insertObj (\\_ => v.c2 ++ np.s ! Acc) (predV v)) ; --- ComplV2A v np ap = --- insertObj (\\_ => v.c2 ++ np.s ! Acc ++ ap.s ! np.a) (predV v) ; --- --- ReflV2 v = insertObj (\\a => v.c2 ++ reflPron ! a) (predV v) ; --- ----- from Sentence 19/4/2008 --- --- SlashV2 np v2 = --- mkClause (np.s ! Nom) np.a (predV v2) ** {c2 = v2.c2} ; --- --- SlashVVV2 np vv v2 = --- mkClause (np.s ! Nom) np.a --- (insertObj (\\a => infVP vv.isAux (predV v2) a) (predVV vv)) ** --- {c2 = v2.c2} ; --- ----- from Noun 19/4/2008 --- --- NumInt n = {s = n.s ; n = Pl} ; --- OrdInt n = {s = n.s ++ "th"} ; --- DEPRECATED --- --- DetSg quant ord = { --- s = quant.s ! Sg ++ ord.s ; --- n = Sg --- } ; --- --- DetPl quant num ord = { --- s = quant.s ! num.n ++ num.s ++ ord.s ; --- n = num.n --- } ; --- --- NoNum = {s = []; n = Pl } ; --- --- DefArt = {s = \\_ => artDef} ; --- --- IndefArt = { --- s = table { --- Sg => artIndef ; --- Pl => [] --- } --- } ; --- --- MassDet = {s = \\_ => []} ; --- --- --- ----- from Structural 19/4/2008 --- --- that_NP = regNP "that" Sg ; --- these_NP = regNP "these" Pl ; --- this_NP = regNP "this" Sg ; --- those_NP = regNP "those" Pl ; --- ---} diff --git a/lib/next-resource/hindi/CatHin.gf b/lib/next-resource/hindi/CatHin.gf deleted file mode 100644 index 0d32318d7..000000000 --- a/lib/next-resource/hindi/CatHin.gf +++ /dev/null @@ -1,90 +0,0 @@ -concrete CatHin of Cat = CommonX ** open ResHin, Prelude in { - - flags optimize=all_subs ; - - lincat --- ----- Tensed/Untensed --- --- S = {s : Str} ; --- QS = {s : QForm => Str} ; --- RS = {s : Agr => Str ; c : Case} ; -- c for it clefts --- SSlash = {s : Str ; c2 : Str} ; --- ----- Sentence --- - Cl = ResHin.Clause ; --- ClSlash = { --- s : ResHin.Tense => Anteriority => CPolarity => Order => Str ; --- c2 : Str --- } ; --- Imp = {s : CPolarity => ImpForm => Str} ; --- ----- Question --- --- QCl = {s : ResHin.Tense => Anteriority => CPolarity => QForm => Str} ; --- IP = {s : Case => Str ; n : Number} ; --- IComp = {s : Str} ; --- IDet = {s : Str ; n : Number} ; --- IQuant = {s : Number => Str} ; --- ----- Relative --- --- RCl = { --- s : ResHin.Tense => Anteriority => CPolarity => Agr => Str ; --- c : Case --- } ; --- RP = {s : RCase => Str ; a : RAgr} ; --- ----- Verb --- - VP = ResHin.VPH ; - VPSlash = ResHin.VPHSlash ; --- Comp = {s : Agr => Str} ; --- ----- Adjective --- - AP = ResHin.Adjective ; --- ----- Noun --- - CN = ResHin.Noun ; - NP = ResHin.NP ; - Pron = {s : PronCase => Str ; a : Agr} ; - Det = {s : Gender => Case => Str ; n : Number} ; --- Predet, Ord = {s : Str} ; - Num = {s : Str ; n : Number} ; --- Card = {s : Str; n : Number} ; - Quant = {s : Number => Gender => Case => Str} ; - Art = {s : Str} ; --- ----- Numeral --- --- Numeral = {s : CardOrd => Str ; n : Number} ; --- Digits = {s : CardOrd => Str ; n : Number ; tail : DTail} ; --- ----- Structural --- --- Conj = {s1,s2 : Str ; n : Number} ; ------b Conj = {s : Str ; n : Number} ; ------b DConj = {s1,s2 : Str ; n : Number} ; --- Subj = {s : Str} ; --- Prep = {s : Str} ; --- ----- Open lexical classes, e.g. Lexicon --- - V, VS, VQ, VA = Verb ; -- = {s : VForm => Str} ; - V2, V2A, V2Q, V2S = Verb ** {c2 : Compl} ; --- V3 = Verb ** {c2, c3 : Str} ; --- VV = {s : VVForm => Str ; isAux : Bool} ; --- V2V = Verb ** {c2 : Str ; isAux : Bool} ; --- - A = ResHin.Adjective ; --- {s : Gender => Number => Case => Str} ; --- A2 = {s : AForm => Str ; c2 : Str} ; --- - N = {s : Number => Case => Str ; g : Gender} ; --- N2 = {s : Number => Case => Str ; g : Gender} ** {c2 : Str} ; --- N3 = {s : Number => Case => Str ; g : Gender} ** {c2,c3 : Str} ; - PN = {s : Case => Str ; g : Gender} ; --- -} diff --git a/lib/next-resource/hindi/ConjunctionHin.gf b/lib/next-resource/hindi/ConjunctionHin.gf deleted file mode 100644 index 4a2e56096..000000000 --- a/lib/next-resource/hindi/ConjunctionHin.gf +++ /dev/null @@ -1,37 +0,0 @@ -concrete ConjunctionHin of Conjunction = - CatHin ** open ResHin, Coordination, Prelude in { --- --- flags optimize=all_subs ; --- --- lin --- --- ConjS = conjunctDistrSS ; --- --- ConjAdv = conjunctDistrSS ; --- --- ConjNP conj ss = conjunctDistrTable Case conj ss ** { --- a = conjAgr (agrP3 conj.n) ss.a --- } ; --- --- ConjAP conj ss = conjunctDistrTable Agr conj ss ** { --- isPre = ss.isPre --- } ; --- ----- These fun's are generated from the list cat's. --- --- BaseS = twoSS ; --- ConsS = consrSS comma ; --- BaseAdv = twoSS ; --- ConsAdv = consrSS comma ; --- BaseNP x y = twoTable Case x y ** {a = conjAgr x.a y.a} ; --- ConsNP xs x = consrTable Case comma xs x ** {a = conjAgr xs.a x.a} ; --- BaseAP x y = twoTable Agr x y ** {isPre = andB x.isPre y.isPre} ; --- ConsAP xs x = consrTable Agr comma xs x ** {isPre = andB xs.isPre x.isPre} ; --- --- lincat --- [S] = {s1,s2 : Str} ; --- [Adv] = {s1,s2 : Str} ; --- [NP] = {s1,s2 : Case => Str ; a : Agr} ; --- [AP] = {s1,s2 : Agr => Str ; isPre : Bool} ; --- -} diff --git a/lib/next-resource/hindi/GrammarHin.gf b/lib/next-resource/hindi/GrammarHin.gf deleted file mode 100644 index 21367747b..000000000 --- a/lib/next-resource/hindi/GrammarHin.gf +++ /dev/null @@ -1,21 +0,0 @@ ---# -path=.:../abstract:../common:prelude - -concrete GrammarHin of Grammar = - NounHin, - VerbHin, - AdjectiveHin, - AdverbHin, - NumeralHin, - SentenceHin, - QuestionHin, - RelativeHin, - ConjunctionHin, - PhraseHin, - TextX, - StructuralHin, - IdiomHin - ** { - -flags startcat = Phr ; unlexer = text ; lexer = text ; - -} diff --git a/lib/next-resource/hindi/IdiomHin.gf b/lib/next-resource/hindi/IdiomHin.gf deleted file mode 100644 index 3f012f514..000000000 --- a/lib/next-resource/hindi/IdiomHin.gf +++ /dev/null @@ -1,30 +0,0 @@ -concrete IdiomHin of Idiom = CatHin ** open Prelude, ResHin in { --- --- flags optimize=all_subs ; --- --- lin --- ImpersCl vp = mkClause "it" (agrP3 Sg) vp ; --- GenericCl vp = mkClause "one" (agrP3 Sg) vp ; --- --- CleftNP np rs = mkClause "it" (agrP3 Sg) --- (insertObj (\\_ => rs.s ! np.a) --- (insertObj (\\_ => np.s ! rs.c) (predAux auxBe))) ; --- --- CleftAdv ad s = mkClause "it" (agrP3 Sg) --- (insertObj (\\_ => optStr conjThat ++ s.s) --- (insertObj (\\_ => ad.s) (predAux auxBe))) ; --- --- ExistNP np = --- mkClause "there" (agrP3 (fromAgr np.a).n) --- (insertObj (\\_ => np.s ! Acc) (predAux auxBe)) ; --- --- ExistIP ip = --- mkQuestion (ss (ip.s ! Nom)) --- (mkClause "there" (agrP3 ip.n) (predAux auxBe)) ; --- --- ProgrVP vp = insertObj (\\a => vp.ad ++ vp.prp ++ vp.s2 ! a) (predAux auxBe) ; --- --- ImpPl1 vp = {s = "let's" ++ infVP True vp (AgP1 Pl)} ; --- -} - diff --git a/lib/next-resource/hindi/IrregHin.gf b/lib/next-resource/hindi/IrregHin.gf deleted file mode 100644 index ed8ccd392..000000000 --- a/lib/next-resource/hindi/IrregHin.gf +++ /dev/null @@ -1,181 +0,0 @@ -----# -path=.:prelude:../abstract:../common --- ---concrete IrregHin of IrregHinAbs = CatHin ** open ParadigmsHin in { --- ---flags optimize=values ; --- --- lin --- awake_V = irregV "awake" "awoke" "awoken" ; --- bear_V = irregV "bear" "bore" "born" ; --- beat_V = irregV "beat" "beat" "beat" ; --- become_V = irregV "become" "became" "become" ; --- begin_V = irregV "begin" "began" "begun" ; --- bend_V = irregV "bend" "bent" "bent" ; --- beset_V = irregV "beset" "beset" "beset" ; --- bet_V = irregDuplV "bet" "bet" "bet" ; --- bid_V = irregDuplV "bid" (variants {"bid" ; "bade"}) (variants {"bid" ; "bidden"}) ; --- bind_V = irregV "bind" "bound" "bound" ; --- bite_V = irregV "bite" "bit" "bitten" ; --- bleed_V = irregV "bleed" "bled" "bled" ; --- blow_V = irregV "blow" "blew" "blown" ; --- break_V = irregV "break" "broke" "broken" ; --- breed_V = irregV "breed" "bred" "bred" ; --- bring_V = irregV "bring" "brought" "brought" ; --- broadcast_V = irregV "broadcast" "broadcast" "broadcast" ; --- build_V = irregV "build" "built" "built" ; --- burn_V = irregV "burn" (variants {"burned" ; "burnt"}) (variants {"burned" ; "burnt"}) ; --- burst_V = irregV "burst" "burst" "burst" ; --- buy_V = irregV "buy" "bought" "bought" ; --- cast_V = irregV "cast" "cast" "cast" ; --- catch_V = irregV "catch" "caught" "caught" ; --- choose_V = irregV "choose" "chose" "chosen" ; --- cling_V = irregV "cling" "clung" "clung" ; --- come_V = irregV "come" "came" "come" ; --- cost_V = irregV "cost" "cost" "cost" ; --- creep_V = irregV "creep" "crept" "crept" ; --- cut_V = irregDuplV "cut" "cut" "cut" ; --- deal_V = irregV "deal" "dealt" "dealt" ; --- dig_V = irregDuplV "dig" "dug" "dug" ; --- dive_V = irregV "dive" (variants {"dived" ; "dove"}) "dived" ; --- do_V = mk5V "do" "does" "did" "done" "doing" ; --- draw_V = irregV "draw" "drew" "drawn" ; --- dream_V = irregV "dream" (variants {"dreamed" ; "dreamt"}) (variants {"dreamed" ; "dreamt"}) ; --- drive_V = irregV "drive" "drove" "driven" ; --- drink_V = irregV "drink" "drank" "drunk" ; --- eat_V = irregV "eat" "ate" "eaten" ; --- fall_V = irregV "fall" "fell" "fallen" ; --- feed_V = irregV "feed" "fed" "fed" ; --- feel_V = irregV "feel" "felt" "felt" ; --- fight_V = irregV "fight" "fought" "fought" ; --- find_V = irregV "find" "found" "found" ; --- fit_V = irregDuplV "fit" "fit" "fit" ; --- flee_V = irregV "flee" "fled" "fled" ; --- fling_V = irregV "fling" "flung" "flung" ; --- fly_V = irregV "fly" "flew" "flown" ; --- forbid_V = irregDuplV "forbid" "forbade" "forbidden" ; --- forget_V = irregDuplV "forget" "forgot" "forgotten" ; --- forgive_V = irregV "forgive" "forgave" "forgiven" ; --- forsake_V = irregV "forsake" "forsook" "forsaken" ; --- freeze_V = irregV "freeze" "froze" "frozen" ; --- get_V = irregDuplV "get" "got" "gotten" ; --- give_V = irregV "give" "gave" "given" ; --- go_V = mk5V "go" "goes" "went" "gone" "going" ; --- grind_V = irregV "grind" "ground" "ground" ; --- grow_V = irregV "grow" "grew" "grown" ; --- hang_V = irregV "hang" "hung" "hung" ; --- have_V = mk5V "have" "has" "had" "had" "having" ; --- hear_V = irregV "hear" "heard" "heard" ; --- hide_V = irregV "hide" "hid" "hidden" ; --- hit_V = irregDuplV "hit" "hit" "hit" ; --- hold_V = irregV "hold" "held" "held" ; --- hurt_V = irregV "hurt" "hurt" "hurt" ; --- keep_V = irregV "keep" "kept" "kept" ; --- kneel_V = irregV "kneel" "knelt" "knelt" ; --- knit_V = irregDuplV "knit" "knit" "knit" ; --- know_V = irregV "know" "knew" "know" ; --- lay_V = irregV "lay" "laid" "laid" ; --- lead_V = irregV "lead" "led" "led" ; --- leap_V = irregV "leap" (variants {"leaped" ; "lept"}) (variants {"leaped" ; "lept"}) ; --- learn_V = irregV "learn" (variants {"learned" ; "learnt"}) (variants {"learned" ; "learnt"}) ; --- leave_V = irregV "leave" "left" "left" ; --- lend_V = irregV "lend" "lent" "lent" ; --- let_V = irregDuplV "let" "let" "let" ; --- lie_V = irregV "lie" "lay" "lain" ; --- light_V = irregV "light" (variants {"lighted" ; "lit"}) "lighted" ; --- lose_V = irregV "lose" "lost" "lost" ; --- make_V = irregV "make" "made" "made" ; --- mean_V = irregV "mean" "meant" "meant" ; --- meet_V = irregV "meet" "met" "met" ; --- misspell_V = irregV "misspell" (variants {"misspelled" ; "misspelt"}) (variants {"misspelled" ; "misspelt"}) ; --- mistake_V = irregV "mistake" "mistook" "mistaken" ; --- mow_V = irregV "mow" "mowed" (variants {"mowed" ; "mown"}) ; --- overcome_V = irregV "overcome" "overcame" "overcome" ; --- overdo_V = mk5V "overdo" "overdoes" "overdid" "overdone" "overdoing" ; --- overtake_V = irregV "overtake" "overtook" "overtaken" ; --- overthrow_V = irregV "overthrow" "overthrew" "overthrown" ; --- pay_V = irregV "pay" "paid" "paid" ; --- plead_V = irregV "plead" "pled" "pled" ; --- prove_V = irregV "prove" "proved" (variants {"proved" ; "proven"}) ; --- put_V = irregDuplV "put" "put" "put" ; --- quit_V = irregDuplV "quit" "quit" "quit" ; --- read_V = irregV "read" "read" "read" ; --- rid_V = irregDuplV "rid" "rid" "rid" ; --- ride_V = irregV "ride" "rode" "ridden" ; --- ring_V = irregV "ring" "rang" "rung" ; --- rise_V = irregV "rise" "rose" "risen" ; --- run_V = irregDuplV "run" "ran" "run" ; --- saw_V = irregV "saw" "sawed" (variants {"sawed" ; "sawn"}) ; --- say_V = irregV "say" "said" "said" ; --- see_V = irregV "see" "saw" "seen" ; --- seek_V = irregV "seek" "sought" "sought" ; --- sell_V = irregV "sell" "sold" "sold" ; --- send_V = irregV "send" "sent" "sent" ; --- set_V = irregDuplV "set" "set" "set" ; --- sew_V = irregV "sew" "sewed" (variants {"sewed" ; "sewn"}) ; --- shake_V = irregV "shake" "shook" "shaken" ; --- shave_V = irregV "shave" "shaved" (variants {"shaved" ; "shaven"}) ; --- shear_V = irregV "shear" "shore" "shorn" ; --- shed_V = irregDuplV "shed" "shed" "shed" ; --- shine_V = irregV "shine" "shone" "shone" ; --- shoe_V = irregV "shoe" "shoed" (variants {"shoed" ; "shod"}) ; --- shoot_V = irregV "shoot" "shot" "shot" ; --- show_V = irregV "show" "showed" (variants {"showed" ; "shown"}) ; --- shrink_V = irregV "shrink" "shrank" "shrunk" ; --- shut_V = irregDuplV "shut" "shut" "shut" ; --- sing_V = irregV "sing" "sang" "sung" ; --- sink_V = irregV "sink" "sank" "sunk" ; --- sit_V = irregDuplV "sit" "sat" "sat" ; --- sleep_V = irregV "sleep" "slept" "slept" ; --- slay_V = irregV "slay" "slew" "slain" ; --- slide_V = irregV "slide" "slid" "slid" ; --- sling_V = irregV "sling" "slung" "slung" ; --- slit_V = irregDuplV "slit" "slit" "slit" ; --- smite_V = irregV "smite" "smote" "smitten" ; --- sow_V = irregV "sow" "sowed" (variants {"sowed" ; "sown"}) ; --- speak_V = irregV "speak" "spoke" "spoken" ; --- speed_V = irregV "speed" "sped" "sped" ; --- spend_V = irregV "spend" "spent" "spent" ; --- spill_V = irregV "spill" (variants {"spilled" ; "spilt"}) (variants {"spilled" ; "spilt"}) ; --- spin_V = irregDuplV "spin" "spun" "spun" ; --- spit_V = irregDuplV "spit" (variants {"spit" ; "spat"}) "spit" ; --- split_V = irregDuplV "split" "split" "split" ; --- spread_V = irregV "spread" "spread" "spread" ; --- spring_V = irregV "spring" (variants {"sprang" ; "sprung"}) "sprung" ; --- stand_V = irregV "stand" "stood" "stood" ; --- steal_V = irregV "steal" "stole" "stolen" ; --- stick_V = irregV "stick" "stuck" "stuck" ; --- sting_V = irregV "sting" "stung" "stung" ; --- stink_V = irregV "stink" "stank" "stunk" ; --- stride_V = irregV "stride" "strod" "stridden" ; --- strike_V = irregV "strike" "struck" "struck" ; --- string_V = irregV "string" "strung" "strung" ; --- strive_V = irregV "strive" "strove" "striven" ; --- swear_V = irregV "swear" "swore" "sworn" ; --- sweep_V = irregV "sweep" "swept" "swept" ; --- swell_V = irregV "swell" "swelled" (variants {"swelled" ; "swollen"}) ; --- swim_V = irregDuplV "swim" "swam" "swum" ; --- swing_V = irregV "swing" "swung" "swung" ; --- take_V = irregV "take" "took" "taken" ; --- teach_V = irregV "teach" "taught" "taught" ; --- tear_V = irregV "tear" "tore" "torn" ; --- tell_V = irregV "tell" "told" "told" ; --- think_V = irregV "think" "thought" "thought" ; --- thrive_V = irregV "thrive" (variants {"thrived" ; "throve"}) "thrived" ; --- throw_V = irregV "throw" "threw" "thrown" ; --- thrust_V = irregV "thrust" "thrust" "thrust" ; --- tread_V = irregV "tread" "trod" "trodden" ; --- understand_V = irregV "understand" "understood" "understood" ; --- uphold_V = irregV "uphold" "upheld" "upheld" ; --- upset_V = irregDuplV "upset" "upset" "upset" ; --- wake_V = irregV "wake" "woke" "woken" ; --- wear_V = irregV "wear" "wore" "worn" ; --- weave_V = irregV "weave" (variants {"weaved" ; "wove"}) (variants {"weaved" ; "woven"}) ; --- wed_V = irregDuplV "wed" "wed" "wed" ; --- weep_V = irregV "weep" "wept" "wept" ; --- wind_V = irregV "wind" "wound" "wound" ; --- win_V = irregDuplV "win" "won" "won" ; --- withhold_V = irregV "withhold" "withheld" "withheld" ; --- withstand_V = irregV "withstand" "withstood" "withstood" ; --- wring_V = irregV "wring" "wrung" "wrung" ; --- write_V = irregV "write" "wrote" "written" ; ---} diff --git a/lib/next-resource/hindi/LangHin.gf b/lib/next-resource/hindi/LangHin.gf deleted file mode 100644 index d043d04f2..000000000 --- a/lib/next-resource/hindi/LangHin.gf +++ /dev/null @@ -1,10 +0,0 @@ ---# -path=.:../abstract:../common:prelude - -concrete LangHin of Lang = - GrammarHin, - LexiconHin - ** { - -flags startcat = Phr ; unlexer=unwords ; lexer=words ; - -} diff --git a/lib/next-resource/hindi/LexiconHin.gf b/lib/next-resource/hindi/LexiconHin.gf deleted file mode 100644 index dfa32d661..000000000 --- a/lib/next-resource/hindi/LexiconHin.gf +++ /dev/null @@ -1,375 +0,0 @@ ---# -path=.:prelude - -concrete LexiconHin of Lexicon = CatHin ** - open ParadigmsHin, Prelude in { - - flags - optimize=values ; - - lin --- airplane_N = regN "airplane" ; --- answer_V2S = mkV2S (regV "answer") toP ; --- apartment_N = regN "apartment" ; - apple_N = mkN "seb" ; --- art_N = regN "art" ; --- ask_V2Q = mkV2Q (regV "ask") noPrep ; --- baby_N = regN "baby" ; --- bad_A = mkADeg "bad" "worse" "worst" "badly" ; --- bank_N = regN "bank" ; --- beautiful_A = compoundADeg (regA "beautiful") ; --- become_VA = mkVA (irregV "become" "became" "become") ; --- beer_N = regN "beer" ; --- beg_V2V = mkV2V (regDuplV "beg") noPrep toP ; - big_A = mkA "baRA" ; --- bike_N = regN "bike" ; --- bird_N = regN "bird" ; --- black_A = regADeg "black" ; --- blue_A = regADeg "blue" ; --- boat_N = regN "boat" ; --- book_N = regN "book" ; --- boot_N = regN "boot" ; --- boss_N = mkN human (regN "boss") ; - boy_N = mkN "lar.kA" ; - bread_N = mkN "rot.I" ; --- break_V2 = dirV2 (irregV "break" "broke" "broken") ; --- broad_A = regADeg "broad" ; --- brother_N2 = mkN2 (mkN masculine (mkN "brother")) (mkPrep "of") ; --- brown_A = regADeg "brown" ; --- butter_N = regN "butter" ; --- buy_V2 = dirV2 (irregV "buy" "bought" "bought") ; --- camera_N = regN "camera" ; --- cap_N = regN "cap" ; --- car_N = regN "car" ; --- carpet_N = regN "carpet" ; --- cat_N = regN "cat" ; --- ceiling_N = regN "ceiling" ; --- chair_N = regN "chair" ; --- cheese_N = regN "cheese" ; --- child_N = mk2N "child" "children" ; --- church_N = regN "church" ; --- city_N = regN "city" ; --- clean_A = regADeg "clean" ; --- clever_A = regADeg "clever" ; --- close_V2 = dirV2 (regV "close") ; --- coat_N = regN "coat" ; --- cold_A = regADeg "cold" ; --- come_V = (irregV "come" "came" "come") ; --- computer_N = regN "computer" ; --- country_N = regN "country" ; --- cousin_N = mkN human (regN "cousin") ; --- cow_N = regN "cow" ; --- die_V = (regV "die") ; --- dirty_A = regADeg "dirty" ; --- distance_N3 = mkN3 (regN "distance") fromP toP ; --- doctor_N = mkN human (regN "doctor") ; --- dog_N = regN "dog" ; --- door_N = regN "door" ; --- drink_V2 = dirV2 (irregV "drink" "drank" "drunk") ; --- easy_A2V = mkA2V (regA "easy") forP ; - eat_V2 = mkV2 "KA" ; --- empty_A = regADeg "empty" ; --- enemy_N = regN "enemy" ; --- factory_N = regN "factory" ; --- father_N2 = mkN2 (mkN masculine (mkN "father")) (mkPrep "of") ; --- fear_VS = mkVS (regV "fear") ; --- find_V2 = dirV2 (irregV "find" "found" "found") ; --- fish_N = mk2N "fish" "fish" ; --- floor_N = regN "floor" ; --- forget_V2 = dirV2 (irregDuplV "forget" "forgot" "forgotten") ; --- fridge_N = regN "fridge" ; --- friend_N = mkN human (regN "friend") ; --- fruit_N = regN "fruit" ; --- fun_AV = mkAV (regA "fun") ; --- garden_N = regN "garden" ; - girl_N = mkN "lar.kI" ; --- glove_N = regN "glove" ; --- gold_N = regN "gold" ; - good_A = mkA "a-cCA" ; - go_V = mkV "cal" ; --- green_A = regADeg "green" ; --- harbour_N = regN "harbour" ; --- hate_V2 = dirV2 (regV "hate") ; --- hat_N = regN "hat" ; --- have_V2 = dirV2 (mk5V "have" "has" "had" "had" "having") ; --- hear_V2 = dirV2 (irregV "hear" "heard" "heard") ; --- hill_N = regN "hill" ; --- hope_VS = mkVS (regV "hope") ; --- horse_N = regN "horse" ; --- hot_A = duplADeg "hot" ; --- house_N = regN "house" ; --- important_A = compoundADeg (regA "important") ; --- industry_N = regN "industry" ; --- iron_N = regN "iron" ; --- king_N = mkN masculine (regN "king") ; --- know_V2 = dirV2 (irregV "know" "knew" "known") ; --- lake_N = regN "lake" ; --- lamp_N = regN "lamp" ; --- learn_V2 = dirV2 (regV "learn") ; --- leather_N = regN "leather" ; --- leave_V2 = dirV2 (irregV "leave" "left" "left") ; --- like_V2 = dirV2 (regV "like") ; --- listen_V2 = prepV2 (regV "listen") toP ; - live_V = mkV "CU" ; ---- touch --- long_A = regADeg "long" ; --- lose_V2 = dirV2 (irregV "lose" "lost" "lost") ; --- love_N = regN "love" ; --- love_V2 = dirV2 (regV "love") ; --- man_N = mkN masculine (mk2N "man" "men") ; --- married_A2 = mkA2 (regA "married") toP ; --- meat_N = regN "meat" ; --- milk_N = regN "milk" ; --- moon_N = regN "moon" ; --- mother_N2 = mkN2 (mkN feminine (mkN "mother")) (mkPrep "of") ; --- mountain_N = regN "mountain" ; --- music_N = regN "music" ; --- narrow_A = regADeg "narrow" ; --- new_A = regADeg "new" ; --- newspaper_N = regN "newspaper" ; --- oil_N = regN "oil" ; --- old_A = regADeg "old" ; --- open_V2 = dirV2 (regV "open") ; --- paint_V2A = mkV2A (regV "paint") noPrep ; --- paper_N = regN "paper" ; --- paris_PN = mkPN (mkN nonhuman (mkN "Paris")) ; --- peace_N = regN "peace" ; --- pen_N = regN "pen" ; --- planet_N = regN "planet" ; --- plastic_N = regN "plastic" ; --- play_V2 = dirV2 (regV "play") ; --- policeman_N = mkN masculine (mkN "policeman" "policemen") ; --- priest_N = mkN human (regN "priest") ; --- probable_AS = mkAS (regA "probable") ; --- queen_N = mkN feminine (regN "queen") ; --- radio_N = regN "radio" ; --- rain_V0 = mkV0 (regV "rain") ; --- read_V2 = dirV2 (irregV "read" "read" "read") ; - red_A = mkA "lAl" ; --- religion_N = regN "religion" ; --- restaurant_N = regN "restaurant" ; --- river_N = regN "river" ; --- rock_N = regN "rock" ; --- roof_N = regN "roof" ; --- rubber_N = regN "rubber" ; --- run_V = (irregDuplV "run" "ran" "run") ; --- say_VS = mkVS (irregV "say" "said" "said") ; --- school_N = regN "school" ; --- science_N = regN "science" ; --- sea_N = regN "sea" ; --- seek_V2 = dirV2 (irregV "seek" "sought" "sought") ; --- see_V2 = dirV2 (irregV "see" "saw" "seen") ; --- sell_V3 = dirV3 (irregV "sell" "sold" "sold") toP ; --- send_V3 = dirV3 (irregV "send" "sent" "sent") toP ; --- sheep_N = mk2N "sheep" "sheep" ; --- ship_N = regN "ship" ; --- shirt_N = regN "shirt" ; --- shoe_N = regN "shoe" ; --- shop_N = regN "shop" ; --- short_A = regADeg "short" ; --- silver_N = regN "silver" ; --- sister_N = mkN2 (mkN feminine (mkN "sister")) (mkPrep "of") ; --- sleep_V = (irregV "sleep" "slept" "slept") ; --- small_A = regADeg "small" ; --- snake_N = regN "snake" ; --- sock_N = regN "sock" ; --- speak_V2 = dirV2 (irregV "speak" "spoke" "spoken") ; --- star_N = regN "star" ; --- steel_N = regN "steel" ; --- stone_N = regN "stone" ; --- stove_N = regN "stove" ; --- student_N = mkN human (regN "student") ; --- stupid_A = regADeg "stupid" ; --- sun_N = regN "sun" ; --- switch8off_V2 = dirV2 (partV (regV "switch") "off") ; --- switch8on_V2 = dirV2 (partV (regV "switch") "on") ; --- table_N = regN "table" ; --- talk_V3 = mkV3 (regV "talk") toP aboutP ; --- teacher_N = mkN human (regN "teacher") ; --- teach_V2 = dirV2 (irregV "teach" "taught" "taught") ; --- television_N = regN "television" ; --- thick_A = regADeg "thick" ; --- thin_A = duplADeg "thin" ; --- train_N = regN "train" ; --- travel_V = (regDuplV "travel") ; --- tree_N = regN "tree" ; --- ---- trousers_N = regN "trousers" ; --- ugly_A = regADeg "ugly" ; --- understand_V2 = dirV2 (irregV "understand" "understood" "understood") ; --- university_N = regN "university" ; --- village_N = regN "village" ; --- wait_V2 = prepV2 (regV "wait") forP ; --- walk_V = (regV "walk") ; --- warm_A = regADeg "warm" ; --- war_N = regN "war" ; --- watch_V2 = dirV2 (regV "watch") ; --- water_N = regN "water" ; --- white_A = regADeg "white" ; --- window_N = regN "window" ; --- wine_N = regN "wine" ; --- win_V2 = dirV2 (irregDuplV "win" "won" "won") ; --- woman_N = mkN feminine (mk2N "woman" "women") ; --- wonder_VQ = mkVQ (regV "wonder") ; --- wood_N = regN "wood" ; --- write_V2 = dirV2 (irregV "write" "wrote" "written") ; --- yellow_A = regADeg "yellow" ; --- young_A = regADeg "young" ; --- --- do_V2 = dirV2 (mk5V "do" "does" "did" "done" "doing") ; --- now_Adv = mkAdv "now" ; --- already_Adv = mkAdv "already" ; --- song_N = regN "song" ; --- add_V3 = dirV3 (regV "add") toP ; --- number_N = regN "number" ; --- put_V2 = prepV2 (irregDuplV "put" "put" "put") noPrep ; --- stop_V = regDuplV "stop" ; --- jump_V = regV "jump" ; --- --- left_Ord = ss "left" ; --- right_Ord = ss "right" ; --- far_Adv = mkAdv "far" ; --- correct_A = (regA "correct") ; --- dry_A = regA "dry" ; --- dull_A = regA "dull" ; --- full_A = regA "full" ; --- heavy_A = regA "heavy" ; --- near_A = regA "near" ; --- rotten_A = (regA "rotten") ; --- round_A = regA "round" ; --- sharp_A = regA "sharp" ; --- smooth_A = regA "smooth" ; --- straight_A = regA "straight" ; --- wet_A = regA "wet" ; ---- --- wide_A = regA "wide" ; --- animal_N = regN "animal" ; --- ashes_N = regN "ash" ; -- FIXME: plural only? --- back_N = regN "back" ; --- bark_N = regN "bark" ; --- belly_N = regN "belly" ; --- blood_N = regN "blood" ; --- bone_N = regN "bone" ; --- breast_N = regN "breast" ; --- cloud_N = regN "cloud" ; --- day_N = regN "day" ; --- dust_N = regN "dust" ; --- ear_N = regN "ear" ; --- earth_N = regN "earth" ; --- egg_N = regN "egg" ; --- eye_N = regN "eye" ; --- fat_N = regN "fat" ; --- feather_N = regN "feather" ; --- fingernail_N = regN "fingernail" ; --- fire_N = regN "fire" ; --- flower_N = regN "flower" ; --- fog_N = regN "fog" ; --- foot_N = mk2N "foot" "feet" ; --- forest_N = regN "forest" ; --- grass_N = regN "grass" ; --- guts_N = regN "gut" ; -- FIXME: no singular --- hair_N = regN "hair" ; --- hand_N = regN "hand" ; --- head_N = regN "head" ; --- heart_N = regN "heart" ; --- horn_N = regN "horn" ; --- husband_N = mkN masculine (regN "husband") ; --- ice_N = regN "ice" ; --- knee_N = regN "knee" ; --- leaf_N = mk2N "leaf" "leaves" ; --- leg_N = regN "leg" ; --- liver_N = regN "liver" ; --- louse_N = mk2N "louse" "lice" ; --- mouth_N = regN "mouth" ; --- name_N = regN "name" ; --- neck_N = regN "neck" ; --- night_N = regN "night" ; --- nose_N = regN "nose" ; --- person_N = mkN human (regN "person") ; --- rain_N = regN "rain" ; --- road_N = regN "road" ; --- root_N = regN "root" ; --- rope_N = regN "rope" ; --- salt_N = regN "salt" ; --- sand_N = regN "sand" ; --- seed_N = regN "seed" ; --- skin_N = regN "skin" ; --- sky_N = regN "sky" ; --- smoke_N = regN "smoke" ; --- snow_N = regN "snow" ; --- stick_N = regN "stick" ; --- tail_N = regN "tail" ; --- tongue_N = regN "tongue" ; --- tooth_N = mk2N "tooth" "teeth" ; --- wife_N = mkN feminine (mk2N "wife" "wives") ; --- wind_N = regN "wind" ; --- wing_N = regN "wing" ; --- worm_N = regN "worm" ; --- year_N = regN "year" ; --- blow_V = IrregHin.blow_V ; --- breathe_V = dirV2 (regV "breathe") ; --- burn_V = IrregHin.burn_V ; --- dig_V = IrregHin.dig_V ; --- fall_V = IrregHin.fall_V ; --- float_V = regV "float" ; --- flow_V = regV "flow" ; --- fly_V = IrregHin.fly_V ; --- freeze_V = IrregHin.freeze_V ; --- give_V3 = dirV3 give_V toP ; --- laugh_V = regV "laugh" ; --- lie_V = IrregHin.lie_V ; --- play_V = regV "play" ; - sew_V = mkV "sI" ; --- sing_V = IrregHin.sing_V ; --- sit_V = IrregHin.sit_V ; --- smell_V = regV "smell" ; --- spit_V = IrregHin.spit_V ; --- stand_V = IrregHin.stand_V ; --- swell_V = IrregHin.swell_V ; --- swim_V = IrregHin.swim_V ; --- think_V = IrregHin.think_V ; --- turn_V = regV "turn" ; --- vomit_V = regV "vomit" ; --- --- bite_V2 = dirV2 IrregHin.bite_V ; --- count_V2 = dirV2 (regV "count") ; --- cut_V2 = dirV2 IrregHin.cut_V ; --- fear_V2 = dirV2 (regV "fear") ; --- fight_V2 = dirV2 fight_V ; - hit_V2 = mkV2 (mkV "mAr") "ko" ; --- hold_V2 = dirV2 hold_V ; --- hunt_V2 = dirV2 (regV "hunt") ; --- kill_V2 = dirV2 (regV "kill") ; --- pull_V2 = dirV2 (regV "pull") ; --- push_V2 = dirV2 (regV "push") ; --- rub_V2 = dirV2 (regDuplV "rub") ; --- scratch_V2 = dirV2 (regV "scratch") ; --- split_V2 = dirV2 split_V ; --- squeeze_V2 = dirV2 (regV "squeeze") ; --- stab_V2 = dirV2 (regDuplV "stab") ; --- suck_V2 = dirV2 (regV "suck") ; --- throw_V2 = dirV2 throw_V ; --- tie_V2 = dirV2 (regV "tie") ; --- wash_V2 = dirV2 (regV "wash") ; --- wipe_V2 = dirV2 (regV "wipe") ; --- ----- other_A = regA "other" ; --- --- grammar_N = regN "grammar" ; --- language_N = regN "language" ; --- rule_N = regN "rule" ; --- ----- added 4/6/2007 - john_PN = mkPN "jon" ; --- question_N = regN "question" ; --- ready_A = regA "ready" ; --- reason_N = regN "reason" ; --- today_Adv = mkAdv "today" ; --- uncertain_A = regA "uncertain" ; --- ---oper --- aboutP = mkPrep "about" ; --- atP = mkPrep "at" ; --- forP = mkPrep "for" ; --- fromP = mkPrep "from" ; --- inP = mkPrep "in" ; --- onP = mkPrep "on" ; --- toP = mkPrep "to" ; --- -} diff --git a/lib/next-resource/hindi/MorphoHin.gf b/lib/next-resource/hindi/MorphoHin.gf deleted file mode 100644 index 0cb00fde5..000000000 --- a/lib/next-resource/hindi/MorphoHin.gf +++ /dev/null @@ -1,196 +0,0 @@ ---# -path=.:../../prelude --- -----1 A Simple Hindi Resource Morphology ----- ----- Aarne Ranta 2002 -- 2005 ----- ----- This resource morphology contains definitions needed in the resource ----- syntax. To build a lexicon, it is better to use $ParadigmsHin$, which ----- gives a higher-level access to this module. --- -resource MorphoHin = ResHin ** open Prelude, (Predef=Predef) in { --- --- flags optimize=all ; --- -----2 Phonology ----- ----- To regulate the use of endings for both nouns, adjectives, and verbs: --- ---oper --- y2ie : Str -> Str -> Str = \fly,s -> --- let y = last (init fly) in --- case y of { --- "a" => fly + s ; --- "e" => fly + s ; --- "o" => fly + s ; --- "u" => fly + s ; --- _ => init fly + "ie" + s --- } ; --- --- -----2 Nouns ----- ----- For conciseness and abstraction, we define a worst-case macro for ----- noun inflection. It is used for defining special case that ----- only need one string as argument. --- ---oper --- CommonNoun : Type = {s : Number => Case => Str} ; --- --- nounGen : Str -> CommonNoun = \dog -> case last dog of { --- "y" => nounY "dog" ; --- "s" => nounS (init "dog") ; --- _ => nounReg "dog" --- } ; --- ----- These are auxiliaries to $nounGen$. --- --- nounReg : Str -> CommonNoun = \dog -> --- mkNoun dog (dog + "s") (dog + "'s") (dog + "s'"); --- nounS : Str -> CommonNoun = \kiss -> --- mkNoun kiss (kiss + "es") (kiss + "'s") (kiss + "es'") ; --- nounY : Str -> CommonNoun = \fl -> --- mkNoun (fl + "y") (fl + "ies") (fl + "y's") (fl + "ies'") ; --- --- -----3 Proper names ----- ----- Regular proper names are inflected with "'s" in the genitive. --- --- nameReg : Str -> Gender -> {s : Case => Str} = \john,g -> --- {s = table {Gen => john + "'s" ; _ => john} ; g = g} ; --- -----2 Determiners --- --- mkDeterminer : Number -> Str -> {s : Str ; n : Number} = \n,s -> --- {s = s ; n = n} ; --- -----2 Pronouns ----- ----- Here we define personal pronouns. ----- ----- We record the form "mine" and the gender for later use. --- --- Pronoun : Type = --- {s : Case => Str ; a : Agr} ; --- --- mkPronoun : (_,_,_,_ : Str) -> Number -> Person -> Gender -> Pronoun = --- \I,me,my,mine,n,p,g -> --- {s = table {Nom => I ; Acc => me ; Gen => my} ; --- a = toAgr n p g --- } ; --- --- human : Gender = Masc ; --- doesn't matter --- --- pronI = mkPronoun "I" "me" "my" "mine" Sg P1 human ; --- pronYouSg = mkPronoun "you" "you" "your" "yours" Sg P2 human ; -- verb agr OK --- pronHe = mkPronoun "he" "him" "his" "his" Sg P3 Masc ; --- pronShe = mkPronoun "she" "her" "her" "hers" Sg P3 Fem ; --- pronIt = mkPronoun "it" "it" "its" "it" Sg P3 Neutr ; --- --- pronWe = mkPronoun "we" "us" "our" "ours" Pl P1 human ; --- pronYouPl = mkPronoun "you" "you" "your" "yours" Pl P2 human ; --- pronThey = mkPronoun "they" "them" "their" "theirs" Pl P3 human ; --- --- --- -----2 Adjectives ----- ----- To form the adjectival and the adverbial forms, two strings are needed ----- in the worst case. (First without degrees.) --- --- Adjective = {s : AForm => Str} ; --- ----- However, most adjectives can be inflected using the final character. ----- N.B. this is not correct for "shy", but $mkAdjective$ has to be used. --- --- regAdjective : Str -> Adjective = \free -> --- let --- e = last free ; --- fre = init free ; --- freely = case e of { --- "y" => fre + "ily" ; --- _ => free + "ly" --- } ; --- fre = case e of { --- "e" => fre ; --- "y" => fre + "i" ; --- _ => free --- } --- in --- mkAdjective free (fre + "er") (fre + "est") freely ; --- ----- Many adjectives are 'inflected' by adding a comparison word. --- --- adjDegrLong : Str -> Adjective = \ridiculous -> --- mkAdjective --- ridiculous --- ("more" ++ ridiculous) --- ("most" ++ ridiculous) --- ((regAdjective ridiculous).s ! AAdv) ; --- --- -----3 Verbs ----- ----- The worst case needs five forms. (The verb "be" is treated separately.) --- --- mkVerb4 : (_,_,_,_: Str) -> Verb = \go,goes,went,gone -> --- let going = case last go of { --- "e" => init go + "ing" ; --- _ => go + "ing" --- } --- in --- mkVerb go goes went gone going ; --- ----- This is what we use to derive the irregular forms in almost all cases --- --- mkVerbIrreg : (_,_,_ : Str) -> Verb = \bite,bit,bitten -> --- let bites = case last bite of { --- "y" => y2ie bite "s" ; --- "s" => init bite + "es" ; --- _ => bite + "s" --- } --- in mkVerb4 bite bites bit bitten ; --- ----- This is used to derive regular forms. --- --- mkVerbReg : Str -> Verb = \soak -> --- let --- soaks = case last soak of { --- "y" => y2ie soak "s" ; --- "s" => init soak + "es" ; --- _ => soak + "s" --- } ; --- soaked = case last soak of { --- "e" => init soak + "s" ; --- _ => soak + "ed" --- } --- in --- mkVerb4 soak soaks soaked soaked ; --- --- verbGen : Str -> Verb = \kill -> case last kill of { --- "y" => verbP3y (init kill) ; --- "e" => verbP3e (init kill) ; --- "s" => verbP3s (init kill) ; --- _ => regVerbP3 kill --- } ; --- ----- These are just auxiliary to $verbGen$. --- --- regVerbP3 : Str -> Verb = \walk -> --- mkVerbIrreg walk (walk + "ed") (walk + "ed") ; --- verbP3s : Str -> Verb = \kiss -> --- mkVerb4 kiss (kiss + "es") (kiss + "ed") (kiss + "ed") ; --- verbP3e : Str -> Verb = \love -> --- mkVerb4 love (love + "s") (love + "d") (love + "d") ; --- verbP3y : Str -> Verb = \cr -> --- mkVerb4 (cr + "y") (cr + "ies") (cr + "ied") (cr + "ied") ; --- ------ The particle always appears right after the verb. --- --- verbPart : Verb -> Str -> Verb = \v,p -> --- {s = \\f => v.s ! f ++ p ; isRefl = v.isRefl} ; --- --- verbNoPart : Verb -> Verb = \v -> verbPart v [] ; --- --- -} diff --git a/lib/next-resource/hindi/NounHin.gf b/lib/next-resource/hindi/NounHin.gf deleted file mode 100644 index 6db90c867..000000000 --- a/lib/next-resource/hindi/NounHin.gf +++ /dev/null @@ -1,121 +0,0 @@ -concrete NounHin of Noun = CatHin ** open ResHin, Prelude in { - - flags optimize=all_subs ; - - lin - DetCN det cn = { - s = \\c => det.s ! cn.g ! npcase2case c ++ toNP (cn.s ! det.n) c ; - a = agrP3 cn.g det.n - } ; - - UsePN pn = {s = \\c => toNP pn.s c ; a = agrP3 pn.g Sg} ; - UsePron p = {s = \\c => p.s ! np2pronCase c ; a = p.a} ; --- --- PredetNP pred np = { --- s = \\c => pred.s ++ np.s ! c ; --- a = np.a --- } ; --- --- PPartNP np v2 = { --- s = \\c => np.s ! c ++ v2.s ! VPPart ; --- a = np.a --- } ; --- --- RelNP np rs = { --- s = \\c => np.s ! c ++ "," ++ rs.s ! np.a ; --- a = np.a --- } ; --- --- AdvNP np adv = { --- s = \\c => np.s ! c ++ adv.s ; --- a = np.a --- } ; --- --- DetQuantOrd quant num ord = { --- s = quant.s ! num.n ++ num.s ++ ord.s ; --- n = num.n --- } ; - - DetQuant quant num = { - s = \\g,c => quant.s ! num.n ! g ! c ++ num.s ; - n = num.n - } ; - --- DetNP det = { --- s = \\c => det.s ; ---- case --- a = agrP3 det.n --- } ; --- - PossPron p = {s = \\_,_,_ => p.s ! PPoss} ; - - NumSg = {s = []; n = Sg} ; - NumPl = {s = []; n = Pl} ; - --- NumCard n = n ** {hasCard = True} ; --- --- NumDigits n = {s = n.s ! NCard ; n = n.n} ; --- OrdDigits n = {s = n.s ! NOrd} ; --- --- NumNumeral numeral = {s = numeral.s ! NCard; n = numeral.n} ; --- OrdNumeral numeral = {s = numeral.s ! NOrd} ; --- --- AdNum adn num = {s = adn.s ++ num.s ; n = num.n} ; --- --- OrdSuperl a = {s = a.s ! AAdj Superl} ; --- --- DetArtOrd art num ord = { --- s = art.s ! num.hasCard ! num.n ++ num.s ++ ord.s ; --- n = num.n --- } ; --- --- DetArtCard art card = { --- s = art.s ! True ! card.n ++ card.s ; --- n = card.n --- } ; - - DefArt = {s = \\_,_,_ => []} ; - IndefArt = {s = \\_,_,_ => []} ; - --- MassNP cn = { --- s = cn.s ! Sg ; --- a = agrP3 Sg --- } ; - - UseN n = n ; --- UseN2 n = n ; --- --- Use2N3 f = { --- s = \\n,c => f.s ! n ! Nom ; --- g = f.g ; --- c2 = f.c2 --- } ; --- --- Use3N3 f = { --- s = \\n,c => f.s ! n ! Nom ; --- g = f.g ; --- c2 = f.c3 --- } ; --- --- ComplN2 f x = {s = \\n,c => f.s ! n ! Nom ++ f.c2 ++ x.s ! c ; g = f.g} ; --- ComplN3 f x = { --- s = \\n,c => f.s ! n ! Nom ++ f.c2 ++ x.s ! c ; --- g = f.g ; --- c2 = f.c3 --- } ; - - AdjCN ap cn = { - s = \\n,c => ap.s ! cn.g ! n ! c ++ cn.s ! n ! c ; - g = cn.g - } ; - --- RelCN cn rs = { --- s = \\n,c => cn.s ! n ! c ++ rs.s ! agrgP3 n cn.g ; --- g = cn.g --- } ; --- AdvCN cn ad = {s = \\n,c => cn.s ! n ! c ++ ad.s ; g = cn.g} ; --- --- SentCN cn sc = {s = \\n,c => cn.s ! n ! c ++ sc.s ; g = cn.g} ; --- --- ApposCN cn np = {s = \\n,c => cn.s ! n ! Nom ++ np.s ! c ; g = cn.g} ; --- -} diff --git a/lib/next-resource/hindi/NumeralHin.gf b/lib/next-resource/hindi/NumeralHin.gf deleted file mode 100644 index ae4a01ac9..000000000 --- a/lib/next-resource/hindi/NumeralHin.gf +++ /dev/null @@ -1,95 +0,0 @@ -concrete NumeralHin of Numeral = CatHin ** open ResHin in { --- ---lincat --- Digit = {s : DForm => CardOrd => Str} ; --- Sub10 = {s : DForm => CardOrd => Str ; n : Number} ; --- Sub100 = {s : CardOrd => Str ; n : Number} ; --- Sub1000 = {s : CardOrd => Str ; n : Number} ; --- Sub1000000 = {s : CardOrd => Str ; n : Number} ; --- ---lin num x = x ; ---lin n2 = let two = mkNum "two" "twelve" "twenty" "second" in --- {s = \\f,c => case of { --- => "twelfth" ; --- _ => two.s ! f ! c --- } --- } ; --- ---lin n3 = mkNum "three" "thirteen" "thirty" "third" ; ---lin n4 = mkNum "four" "fourteen" "forty" "fourth" ; ---lin n5 = mkNum "five" "fifteen" "fifty" "fifth" ; ---lin n6 = regNum "six" ; ---lin n7 = regNum "seven" ; ---lin n8 = mkNum "eight" "eighteen" "eighty" "eighth" ; ---lin n9 = mkNum "nine" "nineteen" "ninety" "ninth" ; --- ---lin pot01 = mkNum "one" "eleven" "ten" "first" ** {n = Sg} ; ---lin pot0 d = d ** {n = Pl} ; ---lin pot110 = regCardOrd "ten" ** {n = Pl} ; ---lin pot111 = regCardOrd "eleven" ** {n = Pl} ; ---lin pot1to19 d = {s = d.s ! teen} ** {n = Pl} ; ---lin pot0as1 n = {s = n.s ! unit} ** {n = n.n} ; ---lin pot1 d = {s = d.s ! ten} ** {n = Pl} ; ---lin pot1plus d e = { --- s = \\c => d.s ! ten ! NCard ++ "-" ++ e.s ! unit ! c ; n = Pl} ; ---lin pot1as2 n = n ; ---lin pot2 d = {s = \\c => d.s ! unit ! NCard ++ mkCard c "hundred"} ** {n = Pl} ; ---lin pot2plus d e = { --- s = \\c => d.s ! unit ! NCard ++ "hundred" ++ "and" ++ e.s ! c ; n = Pl} ; ---lin pot2as3 n = n ; ---lin pot3 n = { --- s = \\c => n.s ! NCard ++ mkCard c "thousand" ; n = Pl} ; ---lin pot3plus n m = { --- s = \\c => n.s ! NCard ++ "thousand" ++ m.s ! c ; n = Pl} ; --- ----- numerals as sequences of digits --- --- lincat --- Dig = TDigit ; --- --- lin --- IDig d = d ** {tail = T1} ; --- --- IIDig d i = { --- s = \\o => d.s ! NCard ++ commaIf i.tail ++ i.s ! o ; --- n = Pl ; --- tail = inc i.tail --- } ; --- --- D_0 = mkDig "0" ; --- D_1 = mk3Dig "1" "1st" Sg ; --- D_2 = mk2Dig "2" "2nd" ; --- D_3 = mk2Dig "3" "3rd" ; --- D_4 = mkDig "4" ; --- D_5 = mkDig "5" ; --- D_6 = mkDig "6" ; --- D_7 = mkDig "7" ; --- D_8 = mkDig "8" ; --- D_9 = mkDig "9" ; --- --- oper --- commaIf : DTail -> Str = \t -> case t of { --- T3 => "," ; --- _ => [] --- } ; --- --- inc : DTail -> DTail = \t -> case t of { --- T1 => T2 ; --- T2 => T3 ; --- T3 => T1 --- } ; --- --- mk2Dig : Str -> Str -> TDigit = \c,o -> mk3Dig c o Pl ; --- mkDig : Str -> TDigit = \c -> mk2Dig c (c + "th") ; --- --- mk3Dig : Str -> Str -> Number -> TDigit = \c,o,n -> { --- s = table {NCard => c ; NOrd => o} ; --- n = n --- } ; --- --- TDigit = { --- n : Number ; --- s : CardOrd => Str --- } ; --- -} diff --git a/lib/next-resource/hindi/ParadigmsHin.gf b/lib/next-resource/hindi/ParadigmsHin.gf deleted file mode 100644 index 7844caf6e..000000000 --- a/lib/next-resource/hindi/ParadigmsHin.gf +++ /dev/null @@ -1,556 +0,0 @@ ---# -path=.:../abstract:../../prelude:../common --- -----1 Hindi Lexical Paradigms - -resource ParadigmsHin = open - (Predef=Predef), - Prelude, - MorphoHin, - CatHin - in { - ---2 Parameters - -oper - masculine : Gender ; - feminine : Gender ; - - masculine = Masc ; feminine = Fem ; --i - - ---2 Nouns - - mkN = overload { - mkN : Str -> N - = \s -> regNoun s ** {lock_N = <>} ; - mkN : Str -> Gender -> N - = \s,g -> reggNoun s g ** {lock_N = <>} ; - mkN : (x1,_,_,_,_,x6 : Str) -> Gender -> N - = \sd,so,sv,pd,po,pv,g -> mkNoun sd so sv pd po pv g ** {lock_N = <>} ; - } ; - - mkPN = overload { - mkPN : Str -> PN = \s -> let n = regNoun s in {s = n.s ! Sg ; g = n.g ; lock_PN = <>} ; - mkPN : N -> Gender -> PN = \n,g -> {s = n.s ! Sg ; g = g ; lock_PN = <>} ; - } ; - ---2 Adjectives - - mkA = overload { - mkA : Str -> A - = \s -> regAdjective s ** {lock_A = <>} ; - mkA : (x1,_,x3 : Str) -> A - = \msd,m,f -> mkAdjective msd m f ** {lock_A = <>} ; - } ; - ---2 Verbs - - mkV = overload { - mkV : Str -> V - = \s -> regVerb s ** {lock_V = <>} ; - mkV : (x1,_,_,_,_,_,_,_,_,_,_,_,_,_,x15 : Str) -> V - = \inf,stem,ims,imp,ifs,ifp,pms,pmp,pfs,pfp,ss1,ss2,sp2,sp3,r -> - mkVerb inf stem ims imp ifs ifp pms pmp pfs pfp ss1 ss2 sp2 sp3 r ** - {lock_V = <>} ; - } ; - - - mkV2 = overload { - mkV2 : Str -> V2 - = \s -> regVerb s ** {c2 = {s = [] ; c = VTrans} ; lock_V2 = <>} ; - mkV2 : V -> V2 - = \v -> v ** {c2 = {s = [] ; c = VTrans} ; lock_V2 = <>} ; - mkV2 : V -> Str -> V2 - = \v,p -> v ** {c2 = {s = p ; c = VTransPost} ; lock_V2 = <>} ; - } ; - - -----3 Compound nouns ----- ----- A compound noun is an uninflected string attached to an inflected noun, ----- such as "baby boom", "chief executive officer". --- --- mkN : Str -> N -> N --- } ; --- --- -----3 Relational nouns ----- ----- Relational nouns ("daughter of x") need a preposition. --- --- mkN2 : N -> Prep -> N2 ; --- ----- The most common preposition is "of", and the following is a ----- shortcut for regular relational nouns with "of". --- --- regN2 : Str -> N2 ; --- ----- Use the function $mkPrep$ or see the section on prepositions below to ----- form other prepositions. ----- ----- Three-place relational nouns ("the connection from x to y") need two prepositions. --- --- mkN3 : N -> Prep -> Prep -> N3 ; --- --- --- -----3 Proper names and noun phrases ----- ----- Proper names, with a regular genitive, are formed from strings. --- --- mkPN : overload { --- --- mkPN : Str -> PN ; --- ----- Sometimes a common noun can be reused as a proper name, e.g. "Bank" --- --- mkPN : N -> PN --- } ; --- --- -----2 Adjectives --- --- mkA : overload { --- ----- For regular adjectives, the adverbial and comparison forms are derived. This holds ----- even for cases with the variations "happy - happily - happier - happiest", ----- "free - freely - freer - freest", and "rude - rudest". --- --- mkA : (happy : Str) -> A ; --- ----- However, the duplication of the final consonant cannot be predicted, ----- but a separate case is used to give the comparative --- --- mkA : (fat,fatter : Str) -> A ; --- ----- As many as four forms may be needed. --- --- mkA : (good,better,best,well : Str) -> A --- } ; --- ----- To force comparison to be formed by "more - most", ----- the following function is used: --- --- compoundA : A -> A ; -- -/more/most ridiculous --- --- --- -----3 Two-place adjectives ----- ----- Two-place adjectives need a preposition for their second argument. --- --- mkA2 : A -> Prep -> A2 ; --- --- --- -----2 Adverbs --- ----- Adverbs are not inflected. Most lexical ones have position ----- after the verb. Some can be preverbal (e.g. "always"). --- --- mkAdv : Str -> Adv ; --- mkAdV : Str -> AdV ; --- ----- Adverbs modifying adjectives and sentences can also be formed. --- --- mkAdA : Str -> AdA ; --- -----2 Prepositions ----- ----- A preposition as used for rection in the lexicon, as well as to ----- build $PP$s in the resource API, just requires a string. --- --- mkPrep : Str -> Prep ; --- noPrep : Prep ; --- ----- (These two functions are synonyms.) --- -----2 Verbs ----- --- ----- Verbs are constructed by the function $mkV$, which takes a varying ----- number of arguments. --- --- mkV : overload { --- ----- The regular verb function recognizes the special cases where the last ----- character is "y" ("cry-cries" but "buy-buys") or a sibilant ----- ("kiss-"kisses", "jazz-jazzes", "rush-rushes", "munch - munches", ----- "fix - fixes"). --- --- mkV : (cry : Str) -> V ; --- ----- Give the present and past forms for regular verbs where ----- the last letter is duplicated in some forms, ----- e.g. "rip - ripped - ripping". --- --- mkV : (stop, stopped : Str) -> V ; --- ----- There is an extensive list of irregular verbs in the module $IrregularHin$. ----- In practice, it is enough to give three forms, ----- e.g. "drink - drank - drunk". --- --- mkV : (drink, drank, drunk : Str) -> V ; --- ----- Irregular verbs with duplicated consonant in the present participle. --- --- mkV : (run, ran, run, running : Str) -> V ; --- ----- Except for "be", the worst case needs five forms: the infinitive and ----- the third person singular present, the past indicative, and the ----- past and present participles. --- --- mkV : (go, goes, went, gone, going : Str) -> V --- }; --- ----- Verbs with a particle. ----- The particle, such as in "switch on", is given as a string. --- --- partV : V -> Str -> V ; --- ----- Reflexive verbs. ----- By default, verbs are not reflexive; this function makes them that. --- --- reflV : V -> V ; --- -----3 Two-place verbs ----- ----- Two-place verbs need a preposition, except the special case with direct object. ----- (transitive verbs). Notice that a particle comes from the $V$. --- --- mkV2 : overload { --- mkV2 : V -> Prep -> V2 ; -- believe in --- mkV2 : V -> V2 -- kill --- }; --- -----3 Three-place verbs ----- ----- Three-place (ditransitive) verbs need two prepositions, of which ----- the first one or both can be absent. --- --- mkV3 : V -> Prep -> Prep -> V3 ; -- speak, with, about --- dirV3 : V -> Prep -> V3 ; -- give,_,to --- dirdirV3 : V -> V3 ; -- give,_,_ --- -----3 Other complement patterns ----- ----- Verbs and adjectives can take complements such as sentences, ----- questions, verb phrases, and adjectives. --- --- mkV0 : V -> V0 ; --- mkVS : V -> VS ; --- mkV2S : V -> Prep -> V2S ; --- mkVV : V -> VV ; --- mkV2V : V -> Prep -> Prep -> V2V ; --- mkVA : V -> VA ; --- mkV2A : V -> Prep -> V2A ; --- mkVQ : V -> VQ ; --- mkV2Q : V -> Prep -> V2Q ; --- --- mkAS : A -> AS ; --- mkA2S : A -> Prep -> A2S ; --- mkAV : A -> AV ; --- mkA2V : A -> Prep -> A2V ; --- ----- Notice: Categories $V0, AS, A2S, AV, A2V$ are just $A$. ----- $V0$ is just $V$; the second argument is treated as adverb. --- --- V0 : Type ; --- AS, A2S, AV, A2V : Type ; --- -----. -----2 Definitions of paradigms ----- ----- The definitions should not bother the user of the API. So they are ----- hidden from the document. --- --- Gender = MorphoHin.Gender ; --- Number = MorphoHin.Number ; --- Case = MorphoHin.Case ; --- human = Masc ; --- nonhuman = Neutr ; --- masculine = Masc ; --- feminine = Fem ; --- singular = Sg ; --- plural = Pl ; --- nominative = Nom ; --- genitive = Gen ; --- --- Preposition : Type = Str ; -- obsolete --- --- regN = \ray -> --- let rays = add_s ray --- in --- mk2N ray rays ; --- --- --- add_s : Str -> Str = \w -> case w of { --- _ + ("io" | "oo") => w + "s" ; -- radio, bamboo --- _ + ("s" | "z" | "x" | "sh" | "ch" | "o") => w + "es" ; -- bus, hero --- _ + ("a" | "o" | "u" | "e") + "y" => w + "s" ; -- boy --- x + "y" => x + "ies" ; -- fly --- _ => w + "s" -- car --- } ; --- --- mk2N = \man,men -> --- let mens = case last men of { --- "s" => men + "'" ; --- _ => men + "'s" --- } --- in --- mk4N man men (man + "'s") mens ; --- --- mk4N = \man,men,man's,men's -> --- mkNoun man man's men men's ** {g = Neutr ; lock_N = <>} ; --- --- genderN g man = {s = man.s ; g = g ; lock_N = <>} ; --- --- compoundN s n = {s = \\x,y => s ++ n.s ! x ! y ; g=n.g ; lock_N = <>} ; --- --- mkPN = overload { --- mkPN : Str -> PN = regPN ; --- mkPN : N -> PN = nounPN --- } ; --- --- --- mkN2 = \n,p -> n ** {lock_N2 = <> ; c2 = p.s} ; --- regN2 n = mkN2 (regN n) (mkPrep "of") ; --- mkN3 = \n,p,q -> n ** {lock_N3 = <> ; c2 = p.s ; c3 = q.s} ; --- -----3 Relational common noun phrases ----- ----- In some cases, you may want to make a complex $CN$ into a ----- relational noun (e.g. "the old town hall of"). --- --- cnN2 : CN -> Prep -> N2 ; --- cnN3 : CN -> Prep -> Prep -> N3 ; --- ----- This is obsolete. --- cnN2 = \n,p -> n ** {lock_N2 = <> ; c2 = p.s} ; --- cnN3 = \n,p,q -> n ** {lock_N3 = <> ; c2 = p.s ; c3 = q.s} ; --- --- regPN n = regGenPN n human ; --- regGenPN n g = nameReg n g ** {g = g ; lock_PN = <>} ; --- nounPN n = {s = n.s ! singular ; g = n.g ; lock_PN = <>} ; --- --- mk2A a b = mkAdjective a a a b ** {lock_A = <>} ; --- regA a = regADeg a ** {lock_A = <>} ; --- --- mkA2 a p = a ** {c2 = p.s ; lock_A2 = <>} ; --- --- ADeg = A ; ---- --- --- mkADeg a b c d = mkAdjective a b c d ** {lock_A = <>} ; --- --- regADeg happy = --- let --- happ = init happy ; --- y = last happy ; --- happie = case y of { --- "y" => happ + "ie" ; --- "e" => happy ; --- _ => happy + "e" --- } ; --- happily : Str = case happy of { --- _ + "y" => happ + "ily" ; --- _ + "ll" => happy + "y" ; --- _ => happy + "ly" --- } ; --- in mkADeg happy (happie + "r") (happie + "st") happily ; --- --- duplADeg fat = --- mkADeg fat --- (fat + last fat + "er") (fat + last fat + "est") (fat + "ly") ; --- --- compoundADeg a = --- let ad = (a.s ! AAdj Posit) --- in mkADeg ad ("more" ++ ad) ("most" ++ ad) (a.s ! AAdv) ; --- --- adegA a = a ; --- --- mkAdv x = ss x ** {lock_Adv = <>} ; --- mkAdV x = ss x ** {lock_AdV = <>} ; --- mkAdA x = ss x ** {lock_AdA = <>} ; --- --- mkPrep p = ss p ** {lock_Prep = <>} ; --- noPrep = mkPrep [] ; --- --- mk5V a b c d e = mkVerb a b c d e ** {s1 = [] ; lock_V = <>} ; --- --- regV cry = --- let --- cr = init cry ; --- y = last cry ; --- cries = (regN cry).s ! Pl ! Nom ; -- ! --- crie = init cries ; --- cried = case last crie of { --- "e" => crie + "d" ; --- _ => crie + "ed" --- } ; --- crying = case y of { --- "e" => case last cr of { --- "e" => cry + "ing" ; --- _ => cr + "ing" --- } ; --- _ => cry + "ing" --- } --- in mk5V cry cries cried cried crying ; --- --- reg2V fit fitted = --- let fitt = Predef.tk 2 fitted ; --- in mk5V fit (fit + "s") (fitt + "ed") (fitt + "ed") (fitt + "ing") ; --- --- regDuplV fit = --- case last fit of { --- ("a" | "e" | "i" | "o" | "u" | "y") => --- Predef.error (["final duplication makes no sense for"] ++ fit) ; --- t => --- let fitt = fit + t in --- mk5V fit (fit + "s") (fitt + "ed") (fitt + "ed") (fitt + "ing") --- } ; --- --- irregV x y z = let reg = (regV x).s in --- mk5V x (reg ! VPres) y z (reg ! VPresPart) ** {s1 = [] ; lock_V = <>} ; --- --- irreg4V x y z w = let reg = (regV x).s in --- mk5V x (reg ! VPres) y z w ** {s1 = [] ; lock_V = <>} ; --- --- irregDuplV fit y z = --- let --- fitting = (regDuplV fit).s ! VPresPart --- in --- mk5V fit (fit + "s") y z fitting ; --- --- partV v p = verbPart v p ** {lock_V = <>} ; --- reflV v = {s = v.s ; part = v.part ; lock_V = v.lock_V ; isRefl = True} ; --- --- prepV2 v p = v ** {s = v.s ; s1 = v.s1 ; c2 = p.s ; lock_V2 = <>} ; --- dirV2 v = prepV2 v noPrep ; --- --- mkV3 v p q = v ** {s = v.s ; s1 = v.s1 ; c2 = p.s ; c3 = q.s ; lock_V3 = <>} ; --- dirV3 v p = mkV3 v noPrep p ; --- dirdirV3 v = dirV3 v noPrep ; --- --- mkVS v = v ** {lock_VS = <>} ; --- mkVV v = { --- s = table {VVF vf => v.s ! vf ; _ => variants {}} ; --- isAux = False ; lock_VV = <> --- } ; --- mkVQ v = v ** {lock_VQ = <>} ; --- --- V0 : Type = V ; ----- V2S, V2V, V2Q : Type = V2 ; --- AS, A2S, AV : Type = A ; --- A2V : Type = A2 ; --- --- mkV0 v = v ** {lock_V = <>} ; --- mkV2S v p = prepV2 v p ** {lock_V2S = <>} ; --- mkV2V v p t = prepV2 v p ** {isAux = False ; lock_V2V = <>} ; --- mkVA v = v ** {lock_VA = <>} ; --- mkV2A v p = prepV2 v p ** {lock_V2A = <>} ; --- mkV2Q v p = prepV2 v p ** {lock_V2Q = <>} ; --- --- mkAS v = v ** {lock_A = <>} ; --- mkA2S v p = mkA2 v p ** {lock_A = <>} ; --- mkAV v = v ** {lock_A = <>} ; --- mkA2V v p = mkA2 v p ** {lock_A2 = <>} ; --- --- ----- pre-overload API and overload definitions --- --- mk4N : (man,men,man's,men's : Str) -> N ; --- regN : Str -> N ; --- mk2N : (man,men : Str) -> N ; --- genderN : Gender -> N -> N ; --- compoundN : Str -> N -> N ; --- --- mkN = overload { --- mkN : (man,men,man's,men's : Str) -> N = mk4N ; --- mkN : Str -> N = regN ; --- mkN : (man,men : Str) -> N = mk2N ; --- mkN : Gender -> N -> N = genderN ; --- mkN : Str -> N -> N = compoundN --- } ; --- --- --- mk2A : (free,freely : Str) -> A ; --- regA : Str -> A ; --- --- mkA = overload { --- mkA : Str -> A = regA ; --- mkA : (fat,fatter : Str) -> A = \fat,fatter -> --- mkAdjective fat fatter (init fatter + "st") (fat + "ly") ** {lock_A = <>} ; --- mkA : (good,better,best,well : Str) -> A = \a,b,c,d -> --- mkAdjective a b c d ** {lock_A = <>} --- } ; --- --- compoundA = compoundADeg ; --- --- --- mk5V : (go, goes, went, gone, going : Str) -> V ; --- regV : (cry : Str) -> V ; --- reg2V : (stop, stopped : Str) -> V; --- irregV : (drink, drank, drunk : Str) -> V ; --- irreg4V : (run, ran, run, running : Str) -> V ; --- --- -- Use reg2V instead --- regDuplV : Str -> V ; --- -- Use irreg4V instead --- irregDuplV : (get, got, gotten : Str) -> V ; --- --- mkV = overload { --- mkV : (cry : Str) -> V = regV ; --- mkV : (stop, stopped : Str) -> V = reg2V ; --- mkV : (drink, drank, drunk : Str) -> V = irregV ; --- mkV : (run, ran, run, running : Str) -> V = irreg4V ; --- mkV : (go, goes, went, gone, going : Str) -> V = mk5V --- }; --- --- prepV2 : V -> Prep -> V2 ; --- dirV2 : V -> V2 ; --- --- mkV2 = overload { --- mkV2 : V -> Prep -> V2 = prepV2; --- mkV2 : V -> V2 = dirV2 --- }; --- --- ------- obsolete --- ----- Comparison adjectives may two more forms. --- --- ADeg : Type ; --- --- mkADeg : (good,better,best,well : Str) -> ADeg ; --- ----- The regular pattern recognizes two common variations: ----- "-e" ("rude" - "ruder" - "rudest") and ----- "-y" ("happy - happier - happiest - happily") --- --- regADeg : Str -> ADeg ; -- long, longer, longest --- ----- However, the duplication of the final consonant is nor predicted, ----- but a separate pattern is used: --- --- duplADeg : Str -> ADeg ; -- fat, fatter, fattest --- ----- If comparison is formed by "more", "most", as in general for ----- long adjective, the following pattern is used: --- --- compoundADeg : A -> ADeg ; -- -/more/most ridiculous --- ----- From a given $ADeg$, it is possible to get back to $A$. --- --- adegA : ADeg -> A ; --- --- --- regPN : Str -> PN ; --- regGenPN : Str -> Gender -> PN ; -- John, John's --- ----- Sometimes you can reuse a common noun as a proper name, e.g. "Bank". --- --- nounPN : N -> PN ; --- --- --- -} diff --git a/lib/next-resource/hindi/PhraseHin.gf b/lib/next-resource/hindi/PhraseHin.gf deleted file mode 100644 index 16a492029..000000000 --- a/lib/next-resource/hindi/PhraseHin.gf +++ /dev/null @@ -1,24 +0,0 @@ -concrete PhraseHin of Phrase = CatHin ** open Prelude, ResHin in { --- --- lin --- PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ; --- --- UttS s = s ; --- UttQS qs = {s = qs.s ! QDir} ; --- UttImpSg pol imp = {s = pol.s ++ imp.s ! contrNeg True pol.p ! ImpF Sg False} ; --- UttImpPl pol imp = {s = pol.s ++ imp.s ! contrNeg True pol.p ! ImpF Pl False} ; --- UttImpPol pol imp = {s = pol.s ++ imp.s ! contrNeg True pol.p ! ImpF Sg True} ; --- --- UttIP ip = {s = ip.s ! Nom} ; --- Acc also --- UttIAdv iadv = iadv ; --- UttNP np = {s = np.s ! Nom} ; --- UttVP vp = {s = infVP False vp (agrP3 Sg)} ; --- UttAdv adv = adv ; --- --- NoPConj = {s = []} ; --- PConjConj conj = {s = conj.s2} ; --- --- --- NoVoc = {s = []} ; --- VocNP np = {s = "," ++ np.s ! Nom} ; --- -} diff --git a/lib/next-resource/hindi/QuestionHin.gf b/lib/next-resource/hindi/QuestionHin.gf deleted file mode 100644 index e35c2c3d3..000000000 --- a/lib/next-resource/hindi/QuestionHin.gf +++ /dev/null @@ -1,55 +0,0 @@ -concrete QuestionHin of Question = CatHin ** open ResHin, Prelude in { --- --- flags optimize=all_subs ; --- --- lin --- --- QuestCl cl = { --- s = \\t,a,p => --- let cls = cl.s ! t ! a ! p --- in table { --- QDir => cls ! OQuest ; --- QIndir => "if" ++ cls ! ODir --- } ---- "whether" in ExtHin --- } ; --- --- QuestVP qp vp = --- let cl = mkClause (qp.s ! Nom) (agrP3 qp.n) vp --- in {s = \\t,a,b,_ => cl.s ! t ! a ! b ! ODir} ; --- --- QuestSlash ip slash = --- mkQuestion (ss (slash.c2 ++ ip.s ! Acc)) slash ; --- --- stranding in ExratHin --- --- QuestIAdv iadv cl = mkQuestion iadv cl ; --- --- QuestIComp icomp np = --- mkQuestion icomp (mkClause (np.s ! Nom) np.a (predAux auxBe)) ; --- --- --- PrepIP p ip = {s = p.s ++ ip.s ! Acc} ; --- --- AdvIP ip adv = { --- s = \\c => ip.s ! c ++ adv.s ; --- n = ip.n --- } ; --- --- IdetCN idet cn = { --- s = \\c => idet.s ++ cn.s ! idet.n ! c ; --- n = idet.n --- } ; --- --- IdetIP idet = { --- s = \\c => idet.s ; --- n = idet.n --- } ; --- --- IdetQuant idet num = { --- s = idet.s ! num.n ++ num.s ; --- n = num.n --- } ; --- --- CompIAdv a = a ; --- CompIP p = ss (p.s ! Nom) ; --- -} diff --git a/lib/next-resource/hindi/RelativeHin.gf b/lib/next-resource/hindi/RelativeHin.gf deleted file mode 100644 index c4f3ad5d4..000000000 --- a/lib/next-resource/hindi/RelativeHin.gf +++ /dev/null @@ -1,54 +0,0 @@ -concrete RelativeHin of Relative = CatHin ** open ResHin in { --- --- flags optimize=all_subs ; --- --- lin --- --- RelCl cl = { --- s = \\t,a,p,_ => "such" ++ "that" ++ cl.s ! t ! a ! p ! ODir ; --- c = Nom --- } ; --- --- RelVP rp vp = { --- s = \\t,ant,b,ag => --- let --- agr = case rp.a of { --- RNoAg => ag ; --- RAg a => a --- } ; --- cl = mkClause (rp.s ! RC (fromAgr agr).g Nom) agr vp --- in --- cl.s ! t ! ant ! b ! ODir ; --- c = Nom --- } ; --- ----- Pied piping: "at which we are looking". Stranding and empty ----- relative are defined in $ExtraHin.gf$ ("that we are looking at", ----- "we are looking at"). --- --- RelSlash rp slash = { --- s = \\t,a,p,agr => --- slash.c2 ++ rp.s ! RPrep (fromAgr agr).g ++ slash.s ! t ! a ! p ! ODir ; --- c = Acc --- } ; --- --- FunRP p np rp = { --- s = \\c => np.s ! Acc ++ p.s ++ rp.s ! RPrep (fromAgr np.a).g ; --- a = RAg np.a --- } ; --- --- IdRP = --- let varr : Str -> Str = \x -> variants {x ; "that"} --- for bwc --- in { --- s = table { --- RC _ Gen => "whose" ; --- RC Neutr _ => varr "which" ; --- RC _ Acc => varr "whom" ; --- RC _ Nom => varr "who" ; --- RPrep Neutr => "which" ; --- RPrep _ => "whom" --- } ; --- a = RNoAg --- } ; --- -} diff --git a/lib/next-resource/hindi/ResHin.gf b/lib/next-resource/hindi/ResHin.gf deleted file mode 100644 index 17ef91235..000000000 --- a/lib/next-resource/hindi/ResHin.gf +++ /dev/null @@ -1,300 +0,0 @@ ---# -path=.:../abstract:../common:../../prelude --- ---1 Hindi auxiliary operations. --- --- This module contains operations that are needed to make the --- resource syntax work. - -resource ResHin = ParamX ** open Prelude in { - - flags optimize=all ; - - param - Case = Dir | Obl | Voc ; - Gender = Masc | Fem ; - - oper - Noun = {s : Number => Case => Str ; g : Gender} ; - - mkNoun : (x1,_,_,_,_,x6 : Str) -> Gender -> Noun = - \sd,so,sv,pd,po,pv,g -> { - s = table Number [table Case [sd;so;sv] ; table Case [pd;po;pv]] ; - g = g - } ; - - reggNoun : Str -> Gender -> Noun = \s,g -> case of { - <-(_ + ("A" | "I")), Fem> => - mkNoun s s s (s + "eM") (s + "oM") (s + "o") Fem ; - _ => regNoun s ** {g = g} - } ; - - regNoun : Str -> Noun = \s -> case s of { - x + "iyA" => - mkNoun s s s (x + "iyAM") (x + "iyoN") (x + "iyo") Fem ; - x + "A" => - mkNoun s (x + "e") (x + "e") (x + "e") (x + "oN") (x + "o") Masc ; - x + "I" => - mkNoun s s s (x + "iyAM") (x + "iyoN") (x + "iyo") Fem ; - _ => - mkNoun s s s s (s + "oN") (s + "o") Masc - } ; - - - Adjective = {s : Gender => Number => Case => Str} ; - - mkAdjective : (x1,x2,x3 : Str) -> Adjective = \smd,sm,f -> { - s = \\g,n,c => case of { - => smd ; - => sm ; - _ => f - } - } ; - - regAdjective : Str -> Adjective = \s -> case s of { - acch + "A" => mkAdjective s (acch + "e") (acch + "I") ; - _ => mkAdjective s s s - } ; - - param - VForm = - VInf - | VStem - | VImpf Gender Number - | VPerf Gender Number - | VSubj Number Person - | VFut Number Person Gender - | VAbs - | VReq - | VImp - | VReqFut - ; - - oper - Verb = {s : VForm => Str} ; - - mkVerb : (x1,_,_,_,_,_,_,_,_,_,_,_,_,_,x15 : Str) -> Verb = - \inf,stem,ims,imp,ifs,ifp,pms,pmp,pfs,pfp,ss1,ss2,sp2,sp3,r -> { - s = - let ga : Number -> Gender -> Str = \n,g -> - (regAdjective "gA").s ! g ! n ! Dir - in table { - VInf => inf ; - VStem => stem ; - VImpf Masc Sg => ims ; - VImpf Masc Pl => imp ; - VImpf Fem Sg => ifs ; - VImpf Fem Pl => ifp ; - VPerf Masc Sg => pms ; - VPerf Masc Pl => pmp ; - VPerf Fem Sg => pfs ; - VPerf Fem Pl => pfp ; - VSubj Sg P1 => ss1 ; - VSubj Sg _ => ss2 ; - VSubj Pl P2 => sp2 ; - VSubj Pl _ => sp3 ; - VFut Sg P1 g => ss1 + ga Sg g ; - VFut Sg _ g => ss2 + ga Sg g ; - VFut Pl P2 g => sp2 + ga Pl g ; - VFut Pl _ g => sp3 + ga Pl g ; - VAbs => stem + "kar" ; --- ke - VReq => r ; - VImp => sp2 ; - VReqFut => stem + "ie-gA" - } - } ; - - regVerb : Str -> Verb = \cal -> - let caly : Str = case cal of { - _ + ("A" | "e") => cal + "y" ; - c + "U" => c + "uy" ; - c + "I" => c + "iy" ; - _ => cal - } - in - mkVerb - (cal + "nA") cal - (cal + "tA") (cal + "te") (cal + "tI") (cal + "tI") - (caly + "A") (caly + "e") (caly + "I") (caly + "IN") - (caly + "UM") (caly + "e") (caly + "o") (caly + "eN") - (caly + "ie-") ; - - param - CTense = CPresent | CPast | CFuture ; - oper - copula : CTense -> Number -> Person -> Gender -> Str = \t,n,p,g -> - case of { - => "hUM" ; - => "hE" ; - => "hE" ; - => "hEN" ; - => "ho" ; - => "hEN" ; - => "TA" ; - => "TI" ; - => "Te" ; - => "TIN" ; - => "hUNgA" ; - => "hUNgI" ; - => "hogA" ; - => "hogI" ; - => "hoge" ; - => "hoNge" ; - => "hogi:" ; - => "hoNgi:" - } ; - - param - PronCase = PC Case | PObj | PPoss ; - oper - personalPronoun : Person -> Number -> {s : PronCase => Str} = \p,n -> - case of { - => {s = table PronCase ["mEN" ; "muJ" ; "muJ" ; "muJe" ; "merA"]} ; - => {s = table PronCase ["ham" ; "ham" ; "ham" ; "hameN" ; "hamArA"]} ; - => {s = table PronCase ["tU" ; "tuJ" ; "tuJ" ; "tuJe" ; "terA"]} ; - => {s = table PronCase ["tum" ; "tum" ; "tum" ; "tum" ; "tumhArA"]} ; - => {s = table PronCase ["vah" ; "u-s" ; "u-s" ; "u-se" ; "u-skA"]} ; - => {s = table PronCase ["ve" ; "u-n" ; "u-n" ; "u-nheN" ; "u-nkA"]} - } ; - ---- the third is the vocative - is it really this way? - - -- the Hindi verb phrase - ---- CTense = CPresent | CPast | CFuture ; - - - - param - VPHTense = - VPGenPres -- impf hum nahim "I go" - | VPImpPast -- impf Ta nahim "I went" - | VPContPres -- stem raha hum nahim "I am going" - | VPContPast -- stem raha Ta nahim "I was going" - | VPPerf -- perf na/nahim "I went" - | VPPerfPres -- perf hum na/nahim "I have gone" - | VPPerfPast -- perf Ta na/nahim "I had gone" - | VPSubj -- subj na "I may go" - | VPFut -- fut na/nahim "I shall go" - ; - - VPHForm = - VPTense VPHTense Agr -- 9 * 12 - | VPReq - | VPImp - | VPReqFut - | VPInf - | VPStem - ; - - VType = VIntrans | VTrans | VTransPost ; - - oper - objVType : VType -> NPCase = \vt -> case vt of { - VTrans => NPObj ; - _ => NPC Obl - } ; - - VPH : Type = { - s : Bool => VPHForm => {fin, inf, neg : Str} ; - obj : {s : Str ; a : Agr} ; - subj : VType ; - comp : Agr => Str - } ; - - predV : Verb -> VPH = \verb -> { - s = \\b,vh => - let - na = if_then_Str b [] "na" ; - nahim = if_then_Str b [] "nahIN" ; - in - case vh of { - VPTense VPGenPres (Ag g n p) => - {fin = copula CPresent n p g ; inf = verb.s ! VImpf g n ; neg = nahim} ; - VPTense VPImpPast (Ag g n p) => - {fin = copula CPast n p g ; inf = verb.s ! VImpf g n ; neg = nahim} ; - VPTense VPContPres (Ag g n p) => - {fin = copula CPresent n p g ; - inf = verb.s ! VStem ++ raha g n ; neg = nahim} ; - VPTense VPContPast (Ag g n p) => - {fin = copula CPast n p g ; - inf = verb.s ! VStem ++ raha g n ; neg = nahim} ; - VPTense VPPerf (Ag g n _) => - {fin = verb.s ! VPerf g n ; inf = [] ; neg = nahim} ; - VPTense VPPerfPres (Ag g n p) => - {fin = copula CPresent n p g ; inf = verb.s ! VPerf g n ; neg = nahim} ; - VPTense VPPerfPast (Ag g n p) => - {fin = copula CPast n p g ; inf = verb.s ! VPerf g n ; neg = nahim} ; - VPTense VPSubj (Ag _ n p) => {fin = verb.s ! VSubj n p ; inf = [] ; neg = na} ; - VPTense VPFut (Ag g n p) => {fin = verb.s ! VFut n p g ; inf = [] ; neg = na} ; - VPInf => {fin = verb.s ! VStem ; inf = [] ; neg = na} ; - _ => {fin = verb.s ! VStem ; inf = [] ; neg = na} ---- - } ; - obj = {s = [] ; a = defaultAgr} ; - subj = VIntrans ; - comp = \\_ => [] - } ; - - raha : Gender -> Number -> Str = \g,n -> - (regAdjective "rahA").s ! g ! n ! Dir ; - - VPHSlash = VPH ** {c2 : Compl} ; - - Clause : Type = {s : VPHTense => Bool => Str} ; - - Compl : Type = {s : Str ; c : VType} ; - - insertObject : NP -> VPHSlash -> VPH = \np,vps -> { - s = vps.s ; - obj = {s = vps.obj.s ++ np.s ! objVType vps.c2.c ++ vps.c2.s ; a = np.a} ; - subj = vps.c2.c ; - comp = vps.comp - } ; - - param - Agr = Ag Gender Number Person ; - NPCase = NPC Case | NPObj | NPErg ; - - oper - agrP3 : Gender -> Number -> Agr = \g,n -> Ag g n P3 ; - - defaultAgr : Agr = agrP3 Masc Sg ; - - npcase2case : NPCase -> Case = \npc -> case npc of { - NPC c => c ; - NPObj => Obl ; - NPErg => Obl - } ; - - np2pronCase : NPCase -> PronCase = \np -> case np of { - NPC c => PC c ; - NPObj => PObj ; - NPErg => PC Obl - } ; - - toNP : (Case => Str) -> NPCase -> Str = \pn, npc -> case npc of { - NPC c => pn ! c ; - NPObj => pn ! Obl ; - NPErg => pn ! Obl ++ "ne" - } ; - - NP : Type = {s : NPCase => Str ; a : Agr} ; - - mkClause : NP -> VPH -> Clause = \np,vp -> { - s = \\vt,b => - let - subjagr : NPCase * Agr = case vt of { - VPPerf => case vp.subj of { - VTrans => ; - VTransPost => ; - _ => - } ; - _ => - } ; - subj = subjagr.p1 ; - agr = subjagr.p2 ; - vps = vp.s ! b ! VPTense vt agr ; - in - np.s ! subj ++ vp.obj.s ++ vp.comp ! np.a ++ vps.neg ++ vps.inf ++ vps.fin - } ; - - -} diff --git a/lib/next-resource/hindi/SentenceHin.gf b/lib/next-resource/hindi/SentenceHin.gf deleted file mode 100644 index d4930c9af..000000000 --- a/lib/next-resource/hindi/SentenceHin.gf +++ /dev/null @@ -1,66 +0,0 @@ -concrete SentenceHin of Sentence = CatHin ** open Prelude, ResHin in { - - flags optimize=all_subs ; - - lin - - PredVP np vp = mkClause np vp ; - --- PredSCVP sc vp = mkClause sc.s (agrP3 Sg) vp ; --- --- ImpVP vp = { --- s = \\pol,n => --- let --- agr = AgP2 (numImp n) ; --- verb = infVP True vp agr ; --- dont = case pol of { --- CNeg True => "don't" ; --- CNeg False => "do" ++ "not" ; --- _ => [] --- } --- in --- dont ++ verb --- } ; --- --- SlashVP np vp = --- mkClause (np.s ! Nom) np.a vp ** {c2 = vp.c2} ; --- --- AdvSlash slash adv = { --- s = \\t,a,b,o => slash.s ! t ! a ! b ! o ++ adv.s ; --- c2 = slash.c2 --- } ; --- --- SlashPrep cl prep = cl ** {c2 = prep.s} ; --- --- SlashVS np vs slash = --- mkClause (np.s ! Nom) np.a --- (insertObj (\\_ => conjThat ++ slash.s) (predV vs)) ** --- {c2 = slash.c2} ; --- --- EmbedS s = {s = conjThat ++ s.s} ; --- EmbedQS qs = {s = qs.s ! QIndir} ; --- EmbedVP vp = {s = infVP False vp (agrP3 Sg)} ; --- agr --- --- UseCl t a p cl = { --- s = t.s ++ a.s ++ p.s ++ cl.s ! t.t ! a.a ! ctr p.p ! ODir --- } ; --- UseQCl t a p cl = { --- s = \\q => t.s ++ a.s ++ p.s ++ cl.s ! t.t ! a.a ! ctr p.p ! q --- } ; --- UseRCl t a p cl = { --- s = \\r => t.s ++ a.s ++ p.s ++ cl.s ! t.t ! a.a ! ctr p.p ! r ; --- c = cl.c --- } ; --- UseSlash t a p cl = { --- s = t.s ++ a.s ++ p.s ++ cl.s ! t.t ! a.a ! ctr p.p ! ODir ; --- c2 = cl.c2 --- } ; --- --- AdvS a s = {s = a.s ++ "," ++ s.s} ; --- --- RelS s r = {s = s.s ++ "," ++ r.s ! agrP3 Sg} ; --- --- oper --- ctr = contrNeg True ; -- contracted negations --- -} diff --git a/lib/next-resource/hindi/StructuralHin.gf b/lib/next-resource/hindi/StructuralHin.gf deleted file mode 100644 index 9ad5d8e53..000000000 --- a/lib/next-resource/hindi/StructuralHin.gf +++ /dev/null @@ -1,132 +0,0 @@ -concrete StructuralHin of Structural = CatHin ** - open MorphoHin, (P = ParadigmsHin), Prelude in { - - flags optimize=all ; - - lin --- above_Prep = ss "above" ; --- after_Prep = ss "after" ; --- all_Predet = ss "all" ; --- almost_AdA, almost_AdN = ss "almost" ; --- although_Subj = ss "although" ; --- always_AdV = ss "always" ; --- and_Conj = sd2 [] "and" ** {n = Pl} ; ------b and_Conj = ss "and" ** {n = Pl} ; --- because_Subj = ss "because" ; --- before_Prep = ss "before" ; --- behind_Prep = ss "behind" ; --- between_Prep = ss "between" ; --- both7and_DConj = sd2 "both" "and" ** {n = Pl} ; --- but_PConj = ss "but" ; --- by8agent_Prep = ss "by" ; --- by8means_Prep = ss "by" ; --- can8know_VV, can_VV = { --- s = table { --- VVF VInf => ["be able to"] ; --- VVF VPres => "can" ; --- VVF VPPart => ["been able to"] ; --- VVF VPresPart => ["being able to"] ; --- VVF VPast => "could" ; --# notpresent --- VVPastNeg => "couldn't" ; --# notpresent --- VVPresNeg => "can't" --- } ; --- isAux = True --- } ; --- during_Prep = ss "during" ; --- either7or_DConj = sd2 "either" "or" ** {n = Sg} ; --- everybody_NP = regNP "everybody" Sg ; --- every_Det = mkDeterminer Sg "every" ; --- everything_NP = regNP "everything" Sg ; --- everywhere_Adv = ss "everywhere" ; --- few_Det = mkDeterminer Pl "few" ; ------ first_Ord = ss "first" ; DEPRECATED --- for_Prep = ss "for" ; --- from_Prep = ss "from" ; - he_Pron = personalPronoun P3 Sg ** {a = Ag Masc Sg P3} ; --- here_Adv = ss "here" ; --- here7to_Adv = ss ["to here"] ; --- here7from_Adv = ss ["from here"] ; --- how_IAdv = ss "how" ; --- how8many_IDet = mkDeterminer Pl ["how many"] ; --- if_Subj = ss "if" ; --- in8front_Prep = ss ["in front of"] ; - i_Pron = personalPronoun P1 Sg ** {a = Ag Masc Sg P1} ; - in_Prep = ss "meN" ; --- it_Pron = mkNP "it" "it" "its" Sg P3 Neutr ; --- less_CAdv = ss "less" ; --- many_Det = mkDeterminer Pl "many" ; --- more_CAdv = ss "more" ; --- most_Predet = ss "most" ; --- much_Det = mkDeterminer Sg "much" ; --- must_VV = { --- s = table { --- VVF VInf => ["have to"] ; --- VVF VPres => "must" ; --- VVF VPPart => ["had to"] ; --- VVF VPresPart => ["having to"] ; --- VVF VPast => ["had to"] ; --# notpresent --- VVPastNeg => ["hadn't to"] ; --# notpresent --- VVPresNeg => "mustn't" --- } ; --- isAux = True --- } ; ------b no_Phr = ss "no" ; --- no_Utt = ss "no" ; --- on_Prep = ss "on" ; ------- one_Quant = mkDeterminer Sg "one" ; -- DEPRECATED --- only_Predet = ss "only" ; --- or_Conj = sd2 [] "or" ** {n = Sg} ; --- otherwise_PConj = ss "otherwise" ; --- part_Prep = ss "of" ; --- please_Voc = ss "please" ; --- possess_Prep = ss "of" ; --- quite_Adv = ss "quite" ; --- she_Pron = mkNP "she" "her" "her" Sg P3 Fem ; --- so_AdA = ss "so" ; --- somebody_NP = regNP "somebody" Sg ; --- someSg_Det = mkDeterminer Sg "some" ; --- somePl_Det = mkDeterminer Pl "some" ; --- something_NP = regNP "something" Sg ; --- somewhere_Adv = ss "somewhere" ; --- that_Quant = mkQuant "that" "those" ; --- there_Adv = ss "there" ; --- there7to_Adv = ss "there" ; --- there7from_Adv = ss ["from there"] ; --- therefore_PConj = ss "therefore" ; --- they_Pron = mkNP "they" "them" "their" Pl P3 Masc ; ---- --- this_Quant = mkQuant "this" "these" ; --- through_Prep = ss "through" ; --- too_AdA = ss "too" ; --- to_Prep = ss "to" ; --- under_Prep = ss "under" ; --- very_AdA = ss "very" ; --- want_VV = P.mkVV (P.regV "want") ; - we_Pron = personalPronoun P1 Pl ** {a = Ag Masc Pl P1} ; - --- whatPl_IP = mkIP "what" "what" "what's" Sg ; --- whatSg_IP = mkIP "what" "what" "what's" Sg ; --- when_IAdv = ss "when" ; --- when_Subj = ss "when" ; --- where_IAdv = ss "where" ; --- which_IQuant = {s = \\_ => "which"} ; ------b whichPl_IDet = mkDeterminer Pl ["which"] ; ------b whichSg_IDet = mkDeterminer Sg ["which"] ; --- whoSg_IP = mkIP "who" "whom" "whose" Sg ; --- whoPl_IP = mkIP "who" "whom" "whose" Pl ; --- why_IAdv = ss "why" ; --- without_Prep = ss "without" ; --- with_Prep = ss "with" ; ------b yes_Phr = ss "yes" ; --- yes_Utt = ss "yes" ; --- youSg_Pron = mkNP "you" "you" "your" Sg P2 Masc ; --- youPl_Pron = mkNP "you" "you" "your" Pl P2 Masc ; --- youPol_Pron = mkNP "you" "you" "your" Sg P2 Masc ; --- --- ---oper --- mkQuant : Str -> Str -> {s : Number => Str} = \x,y -> { --- s = table Number [x ; y] --- } ; --- -} --- diff --git a/lib/next-resource/hindi/VerbHin.gf b/lib/next-resource/hindi/VerbHin.gf deleted file mode 100644 index c2abf824d..000000000 --- a/lib/next-resource/hindi/VerbHin.gf +++ /dev/null @@ -1,50 +0,0 @@ -concrete VerbHin of Verb = CatHin ** open ResHin in { - - flags optimize=all_subs ; - - lin - UseV = predV ; - - SlashV2a v = predV v ** {c2 = v.c2} ; - --- Slash2V3 v np = --- insertObjc (\\_ => v.c2 ++ np.s ! Acc) (predV v ** {c2 = v.c3}) ; --- Slash3V3 v np = --- insertObjc (\\_ => v.c3 ++ np.s ! Acc) (predVc v) ; ---- --- --- ComplVV v vp = insertObj (\\a => infVP v.isAux vp a) (predVV v) ; --- ComplVS v s = insertObj (\\_ => conjThat ++ s.s) (predV v) ; --- ComplVQ v q = insertObj (\\_ => q.s ! QIndir) (predV v) ; --- ComplVA v ap = insertObj (ap.s) (predV v) ; --- --- SlashV2V v vp = insertObjc (\\a => infVP v.isAux vp a) (predVc v) ; --- SlashV2S v s = insertObjc (\\_ => conjThat ++ s.s) (predVc v) ; --- SlashV2Q v q = insertObjc (\\_ => q.s ! QIndir) (predVc v) ; --- SlashV2A v ap = insertObjc (\\a => ap.s ! a) (predVc v) ; ---- - - ComplSlash vp np = insertObject np vp ; - --- SlashVV vv vp = --- insertObj (\\a => infVP vv.isAux vp a) (predVV vv) ** --- {c2 = vp.c2} ; --- SlashV2VNP vv np vp = --- insertObjPre (\\_ => vp.c2 ++ np.s ! Acc) --- (insertObjc (\\a => infVP vv.isAux vp a) (predVc vv)) ** --- {c2 = vp.c2} ; --- --- UseComp comp = insertComplement comp.s (predAux auxBe) ; --- --- AdvVP vp adv = insertObj (\\_ => adv.s) vp ; --- --- AdVVP adv vp = insertAdV adv.s vp ; --- --- ReflVP v = insertObjPre (\\a => v.c2 ++ reflPron ! a) v ; --- --- PassV2 v = insertObj (\\_ => v.s ! VPPart) (predAux auxBe) ; --- --- --- CompAP ap = ap ; --- CompNP np = {s = \\_ => np.s ! Acc} ; --- CompAdv a = {s = \\_ => a.s} ; --- -} diff --git a/lib/next-resource/Make.hs b/next-lib/src/Make.hs similarity index 100% rename from lib/next-resource/Make.hs rename to next-lib/src/Make.hs diff --git a/lib/next-resource/abstract/Adjective.gf b/next-lib/src/abstract/Adjective.gf similarity index 100% rename from lib/next-resource/abstract/Adjective.gf rename to next-lib/src/abstract/Adjective.gf diff --git a/lib/next-resource/abstract/Adverb.gf b/next-lib/src/abstract/Adverb.gf similarity index 100% rename from lib/next-resource/abstract/Adverb.gf rename to next-lib/src/abstract/Adverb.gf diff --git a/lib/next-resource/abstract/Backward.gf b/next-lib/src/abstract/Backward.gf similarity index 100% rename from lib/next-resource/abstract/Backward.gf rename to next-lib/src/abstract/Backward.gf diff --git a/lib/next-resource/abstract/Cat.gf b/next-lib/src/abstract/Cat.gf similarity index 100% rename from lib/next-resource/abstract/Cat.gf rename to next-lib/src/abstract/Cat.gf diff --git a/lib/next-resource/abstract/Common.gf b/next-lib/src/abstract/Common.gf similarity index 100% rename from lib/next-resource/abstract/Common.gf rename to next-lib/src/abstract/Common.gf diff --git a/lib/next-resource/abstract/Conjunction.gf b/next-lib/src/abstract/Conjunction.gf similarity index 100% rename from lib/next-resource/abstract/Conjunction.gf rename to next-lib/src/abstract/Conjunction.gf diff --git a/lib/next-resource/abstract/Extra.gf b/next-lib/src/abstract/Extra.gf similarity index 100% rename from lib/next-resource/abstract/Extra.gf rename to next-lib/src/abstract/Extra.gf diff --git a/lib/next-resource/abstract/Grammar.gf b/next-lib/src/abstract/Grammar.gf similarity index 100% rename from lib/next-resource/abstract/Grammar.gf rename to next-lib/src/abstract/Grammar.gf diff --git a/lib/next-resource/abstract/Idiom.gf b/next-lib/src/abstract/Idiom.gf similarity index 100% rename from lib/next-resource/abstract/Idiom.gf rename to next-lib/src/abstract/Idiom.gf diff --git a/lib/next-resource/abstract/Lang.gf b/next-lib/src/abstract/Lang.gf similarity index 100% rename from lib/next-resource/abstract/Lang.gf rename to next-lib/src/abstract/Lang.gf diff --git a/lib/next-resource/abstract/Lexicon.gf b/next-lib/src/abstract/Lexicon.gf similarity index 100% rename from lib/next-resource/abstract/Lexicon.gf rename to next-lib/src/abstract/Lexicon.gf diff --git a/lib/next-resource/abstract/Noun.gf b/next-lib/src/abstract/Noun.gf similarity index 100% rename from lib/next-resource/abstract/Noun.gf rename to next-lib/src/abstract/Noun.gf diff --git a/lib/next-resource/abstract/Numeral.gf b/next-lib/src/abstract/Numeral.gf similarity index 100% rename from lib/next-resource/abstract/Numeral.gf rename to next-lib/src/abstract/Numeral.gf diff --git a/lib/next-resource/abstract/Phrase.gf b/next-lib/src/abstract/Phrase.gf similarity index 100% rename from lib/next-resource/abstract/Phrase.gf rename to next-lib/src/abstract/Phrase.gf diff --git a/lib/next-resource/abstract/Question.gf b/next-lib/src/abstract/Question.gf similarity index 100% rename from lib/next-resource/abstract/Question.gf rename to next-lib/src/abstract/Question.gf diff --git a/lib/next-resource/abstract/Relative.gf b/next-lib/src/abstract/Relative.gf similarity index 100% rename from lib/next-resource/abstract/Relative.gf rename to next-lib/src/abstract/Relative.gf diff --git a/lib/next-resource/abstract/Sentence.gf b/next-lib/src/abstract/Sentence.gf similarity index 100% rename from lib/next-resource/abstract/Sentence.gf rename to next-lib/src/abstract/Sentence.gf diff --git a/lib/next-resource/abstract/Structural.gf b/next-lib/src/abstract/Structural.gf similarity index 100% rename from lib/next-resource/abstract/Structural.gf rename to next-lib/src/abstract/Structural.gf diff --git a/lib/next-resource/abstract/Symbol.gf b/next-lib/src/abstract/Symbol.gf similarity index 100% rename from lib/next-resource/abstract/Symbol.gf rename to next-lib/src/abstract/Symbol.gf diff --git a/lib/next-resource/abstract/Text.gf b/next-lib/src/abstract/Text.gf similarity index 100% rename from lib/next-resource/abstract/Text.gf rename to next-lib/src/abstract/Text.gf diff --git a/lib/next-resource/abstract/Verb.gf b/next-lib/src/abstract/Verb.gf similarity index 100% rename from lib/next-resource/abstract/Verb.gf rename to next-lib/src/abstract/Verb.gf diff --git a/lib/next-resource/api/Combinators.gf b/next-lib/src/api/Combinators.gf similarity index 100% rename from lib/next-resource/api/Combinators.gf rename to next-lib/src/api/Combinators.gf diff --git a/lib/next-resource/api/CombinatorsAra.gf b/next-lib/src/api/CombinatorsAra.gf similarity index 100% rename from lib/next-resource/api/CombinatorsAra.gf rename to next-lib/src/api/CombinatorsAra.gf diff --git a/lib/next-resource/api/CombinatorsBul.gf b/next-lib/src/api/CombinatorsBul.gf similarity index 100% rename from lib/next-resource/api/CombinatorsBul.gf rename to next-lib/src/api/CombinatorsBul.gf diff --git a/lib/next-resource/api/CombinatorsCat.gf b/next-lib/src/api/CombinatorsCat.gf similarity index 100% rename from lib/next-resource/api/CombinatorsCat.gf rename to next-lib/src/api/CombinatorsCat.gf diff --git a/lib/next-resource/api/CombinatorsDan.gf b/next-lib/src/api/CombinatorsDan.gf similarity index 100% rename from lib/next-resource/api/CombinatorsDan.gf rename to next-lib/src/api/CombinatorsDan.gf diff --git a/lib/next-resource/api/CombinatorsEng.gf b/next-lib/src/api/CombinatorsEng.gf similarity index 100% rename from lib/next-resource/api/CombinatorsEng.gf rename to next-lib/src/api/CombinatorsEng.gf diff --git a/lib/next-resource/api/CombinatorsFin.gf b/next-lib/src/api/CombinatorsFin.gf similarity index 100% rename from lib/next-resource/api/CombinatorsFin.gf rename to next-lib/src/api/CombinatorsFin.gf diff --git a/lib/next-resource/api/CombinatorsFre.gf b/next-lib/src/api/CombinatorsFre.gf similarity index 100% rename from lib/next-resource/api/CombinatorsFre.gf rename to next-lib/src/api/CombinatorsFre.gf diff --git a/lib/next-resource/api/CombinatorsGer.gf b/next-lib/src/api/CombinatorsGer.gf similarity index 100% rename from lib/next-resource/api/CombinatorsGer.gf rename to next-lib/src/api/CombinatorsGer.gf diff --git a/lib/next-resource/api/CombinatorsHin.gf b/next-lib/src/api/CombinatorsHin.gf similarity index 100% rename from lib/next-resource/api/CombinatorsHin.gf rename to next-lib/src/api/CombinatorsHin.gf diff --git a/lib/next-resource/api/CombinatorsIna.gf b/next-lib/src/api/CombinatorsIna.gf similarity index 100% rename from lib/next-resource/api/CombinatorsIna.gf rename to next-lib/src/api/CombinatorsIna.gf diff --git a/lib/next-resource/api/CombinatorsIta.gf b/next-lib/src/api/CombinatorsIta.gf similarity index 100% rename from lib/next-resource/api/CombinatorsIta.gf rename to next-lib/src/api/CombinatorsIta.gf diff --git a/lib/next-resource/api/CombinatorsNor.gf b/next-lib/src/api/CombinatorsNor.gf similarity index 100% rename from lib/next-resource/api/CombinatorsNor.gf rename to next-lib/src/api/CombinatorsNor.gf diff --git a/lib/next-resource/api/CombinatorsRus.gf b/next-lib/src/api/CombinatorsRus.gf similarity index 100% rename from lib/next-resource/api/CombinatorsRus.gf rename to next-lib/src/api/CombinatorsRus.gf diff --git a/lib/next-resource/api/CombinatorsSpa.gf b/next-lib/src/api/CombinatorsSpa.gf similarity index 100% rename from lib/next-resource/api/CombinatorsSpa.gf rename to next-lib/src/api/CombinatorsSpa.gf diff --git a/lib/next-resource/api/CombinatorsSwe.gf b/next-lib/src/api/CombinatorsSwe.gf similarity index 100% rename from lib/next-resource/api/CombinatorsSwe.gf rename to next-lib/src/api/CombinatorsSwe.gf diff --git a/lib/next-resource/api/CombinatorsTha.gf b/next-lib/src/api/CombinatorsTha.gf similarity index 100% rename from lib/next-resource/api/CombinatorsTha.gf rename to next-lib/src/api/CombinatorsTha.gf diff --git a/lib/next-resource/api/Constructors.gf b/next-lib/src/api/Constructors.gf similarity index 100% rename from lib/next-resource/api/Constructors.gf rename to next-lib/src/api/Constructors.gf diff --git a/lib/next-resource/api/ConstructorsBul.gf b/next-lib/src/api/ConstructorsBul.gf similarity index 100% rename from lib/next-resource/api/ConstructorsBul.gf rename to next-lib/src/api/ConstructorsBul.gf diff --git a/lib/next-resource/api/ConstructorsCat.gf b/next-lib/src/api/ConstructorsCat.gf similarity index 100% rename from lib/next-resource/api/ConstructorsCat.gf rename to next-lib/src/api/ConstructorsCat.gf diff --git a/lib/next-resource/api/ConstructorsDan.gf b/next-lib/src/api/ConstructorsDan.gf similarity index 100% rename from lib/next-resource/api/ConstructorsDan.gf rename to next-lib/src/api/ConstructorsDan.gf diff --git a/lib/next-resource/api/ConstructorsEng.gf b/next-lib/src/api/ConstructorsEng.gf similarity index 100% rename from lib/next-resource/api/ConstructorsEng.gf rename to next-lib/src/api/ConstructorsEng.gf diff --git a/lib/next-resource/api/ConstructorsFin.gf b/next-lib/src/api/ConstructorsFin.gf similarity index 100% rename from lib/next-resource/api/ConstructorsFin.gf rename to next-lib/src/api/ConstructorsFin.gf diff --git a/lib/next-resource/api/ConstructorsFre.gf b/next-lib/src/api/ConstructorsFre.gf similarity index 100% rename from lib/next-resource/api/ConstructorsFre.gf rename to next-lib/src/api/ConstructorsFre.gf diff --git a/lib/next-resource/api/ConstructorsGer.gf b/next-lib/src/api/ConstructorsGer.gf similarity index 100% rename from lib/next-resource/api/ConstructorsGer.gf rename to next-lib/src/api/ConstructorsGer.gf diff --git a/lib/next-resource/api/ConstructorsIta.gf b/next-lib/src/api/ConstructorsIta.gf similarity index 100% rename from lib/next-resource/api/ConstructorsIta.gf rename to next-lib/src/api/ConstructorsIta.gf diff --git a/lib/next-resource/api/ConstructorsNor.gf b/next-lib/src/api/ConstructorsNor.gf similarity index 100% rename from lib/next-resource/api/ConstructorsNor.gf rename to next-lib/src/api/ConstructorsNor.gf diff --git a/lib/next-resource/api/ConstructorsRus.gf b/next-lib/src/api/ConstructorsRus.gf similarity index 100% rename from lib/next-resource/api/ConstructorsRus.gf rename to next-lib/src/api/ConstructorsRus.gf diff --git a/lib/next-resource/api/ConstructorsSpa.gf b/next-lib/src/api/ConstructorsSpa.gf similarity index 100% rename from lib/next-resource/api/ConstructorsSpa.gf rename to next-lib/src/api/ConstructorsSpa.gf diff --git a/lib/next-resource/api/ConstructorsSwe.gf b/next-lib/src/api/ConstructorsSwe.gf similarity index 100% rename from lib/next-resource/api/ConstructorsSwe.gf rename to next-lib/src/api/ConstructorsSwe.gf diff --git a/lib/next-resource/api/Symbolic.gf b/next-lib/src/api/Symbolic.gf similarity index 100% rename from lib/next-resource/api/Symbolic.gf rename to next-lib/src/api/Symbolic.gf diff --git a/lib/next-resource/api/SymbolicEng.gf b/next-lib/src/api/SymbolicEng.gf similarity index 100% rename from lib/next-resource/api/SymbolicEng.gf rename to next-lib/src/api/SymbolicEng.gf diff --git a/lib/next-resource/api/Syntax.gf b/next-lib/src/api/Syntax.gf similarity index 100% rename from lib/next-resource/api/Syntax.gf rename to next-lib/src/api/Syntax.gf diff --git a/lib/next-resource/api/SyntaxBul.gf b/next-lib/src/api/SyntaxBul.gf similarity index 100% rename from lib/next-resource/api/SyntaxBul.gf rename to next-lib/src/api/SyntaxBul.gf diff --git a/lib/next-resource/api/SyntaxCat.gf b/next-lib/src/api/SyntaxCat.gf similarity index 100% rename from lib/next-resource/api/SyntaxCat.gf rename to next-lib/src/api/SyntaxCat.gf diff --git a/lib/next-resource/api/SyntaxDan.gf b/next-lib/src/api/SyntaxDan.gf similarity index 100% rename from lib/next-resource/api/SyntaxDan.gf rename to next-lib/src/api/SyntaxDan.gf diff --git a/lib/next-resource/api/SyntaxEng.gf b/next-lib/src/api/SyntaxEng.gf similarity index 100% rename from lib/next-resource/api/SyntaxEng.gf rename to next-lib/src/api/SyntaxEng.gf diff --git a/lib/next-resource/api/SyntaxFin.gf b/next-lib/src/api/SyntaxFin.gf similarity index 100% rename from lib/next-resource/api/SyntaxFin.gf rename to next-lib/src/api/SyntaxFin.gf diff --git a/lib/next-resource/api/SyntaxFre.gf b/next-lib/src/api/SyntaxFre.gf similarity index 100% rename from lib/next-resource/api/SyntaxFre.gf rename to next-lib/src/api/SyntaxFre.gf diff --git a/lib/next-resource/api/SyntaxGer.gf b/next-lib/src/api/SyntaxGer.gf similarity index 100% rename from lib/next-resource/api/SyntaxGer.gf rename to next-lib/src/api/SyntaxGer.gf diff --git a/lib/next-resource/api/SyntaxIta.gf b/next-lib/src/api/SyntaxIta.gf similarity index 100% rename from lib/next-resource/api/SyntaxIta.gf rename to next-lib/src/api/SyntaxIta.gf diff --git a/lib/next-resource/api/SyntaxNor.gf b/next-lib/src/api/SyntaxNor.gf similarity index 100% rename from lib/next-resource/api/SyntaxNor.gf rename to next-lib/src/api/SyntaxNor.gf diff --git a/lib/next-resource/api/SyntaxRus.gf b/next-lib/src/api/SyntaxRus.gf similarity index 100% rename from lib/next-resource/api/SyntaxRus.gf rename to next-lib/src/api/SyntaxRus.gf diff --git a/lib/next-resource/api/SyntaxSpa.gf b/next-lib/src/api/SyntaxSpa.gf similarity index 100% rename from lib/next-resource/api/SyntaxSpa.gf rename to next-lib/src/api/SyntaxSpa.gf diff --git a/lib/next-resource/api/SyntaxSwe.gf b/next-lib/src/api/SyntaxSwe.gf similarity index 100% rename from lib/next-resource/api/SyntaxSwe.gf rename to next-lib/src/api/SyntaxSwe.gf diff --git a/lib/next-resource/api/TryBul.gf b/next-lib/src/api/TryBul.gf similarity index 100% rename from lib/next-resource/api/TryBul.gf rename to next-lib/src/api/TryBul.gf diff --git a/lib/next-resource/api/TryCat.gf b/next-lib/src/api/TryCat.gf similarity index 100% rename from lib/next-resource/api/TryCat.gf rename to next-lib/src/api/TryCat.gf diff --git a/lib/next-resource/api/TryDan.gf b/next-lib/src/api/TryDan.gf similarity index 100% rename from lib/next-resource/api/TryDan.gf rename to next-lib/src/api/TryDan.gf diff --git a/lib/next-resource/api/TryEng.gf b/next-lib/src/api/TryEng.gf similarity index 100% rename from lib/next-resource/api/TryEng.gf rename to next-lib/src/api/TryEng.gf diff --git a/lib/next-resource/api/TryFin.gf b/next-lib/src/api/TryFin.gf similarity index 100% rename from lib/next-resource/api/TryFin.gf rename to next-lib/src/api/TryFin.gf diff --git a/lib/next-resource/api/TryFre.gf b/next-lib/src/api/TryFre.gf similarity index 100% rename from lib/next-resource/api/TryFre.gf rename to next-lib/src/api/TryFre.gf diff --git a/lib/next-resource/api/TryGer.gf b/next-lib/src/api/TryGer.gf similarity index 100% rename from lib/next-resource/api/TryGer.gf rename to next-lib/src/api/TryGer.gf diff --git a/lib/next-resource/api/TryIta.gf b/next-lib/src/api/TryIta.gf similarity index 100% rename from lib/next-resource/api/TryIta.gf rename to next-lib/src/api/TryIta.gf diff --git a/lib/next-resource/api/TryNor.gf b/next-lib/src/api/TryNor.gf similarity index 100% rename from lib/next-resource/api/TryNor.gf rename to next-lib/src/api/TryNor.gf diff --git a/lib/next-resource/api/TryRus.gf b/next-lib/src/api/TryRus.gf similarity index 100% rename from lib/next-resource/api/TryRus.gf rename to next-lib/src/api/TryRus.gf diff --git a/lib/next-resource/api/TrySpa.gf b/next-lib/src/api/TrySpa.gf similarity index 100% rename from lib/next-resource/api/TrySpa.gf rename to next-lib/src/api/TrySpa.gf diff --git a/lib/next-resource/api/TrySwe.gf b/next-lib/src/api/TrySwe.gf similarity index 100% rename from lib/next-resource/api/TrySwe.gf rename to next-lib/src/api/TrySwe.gf diff --git a/lib/next-resource/catalan/AdjectiveCat.gf b/next-lib/src/catalan/AdjectiveCat.gf similarity index 100% rename from lib/next-resource/catalan/AdjectiveCat.gf rename to next-lib/src/catalan/AdjectiveCat.gf diff --git a/lib/next-resource/catalan/AdverbCat.gf b/next-lib/src/catalan/AdverbCat.gf similarity index 100% rename from lib/next-resource/catalan/AdverbCat.gf rename to next-lib/src/catalan/AdverbCat.gf diff --git a/lib/next-resource/catalan/AllCat.gf b/next-lib/src/catalan/AllCat.gf similarity index 100% rename from lib/next-resource/catalan/AllCat.gf rename to next-lib/src/catalan/AllCat.gf diff --git a/lib/next-resource/catalan/AllCatAbs.gf b/next-lib/src/catalan/AllCatAbs.gf similarity index 100% rename from lib/next-resource/catalan/AllCatAbs.gf rename to next-lib/src/catalan/AllCatAbs.gf diff --git a/lib/next-resource/catalan/BeschCat.gf b/next-lib/src/catalan/BeschCat.gf similarity index 100% rename from lib/next-resource/catalan/BeschCat.gf rename to next-lib/src/catalan/BeschCat.gf diff --git a/lib/next-resource/catalan/CatCat.gf b/next-lib/src/catalan/CatCat.gf similarity index 100% rename from lib/next-resource/catalan/CatCat.gf rename to next-lib/src/catalan/CatCat.gf diff --git a/lib/next-resource/catalan/ConjunctionCat.gf b/next-lib/src/catalan/ConjunctionCat.gf similarity index 100% rename from lib/next-resource/catalan/ConjunctionCat.gf rename to next-lib/src/catalan/ConjunctionCat.gf diff --git a/lib/next-resource/catalan/DiffCat.gf b/next-lib/src/catalan/DiffCat.gf similarity index 100% rename from lib/next-resource/catalan/DiffCat.gf rename to next-lib/src/catalan/DiffCat.gf diff --git a/lib/next-resource/catalan/ExtraCat.gf b/next-lib/src/catalan/ExtraCat.gf similarity index 100% rename from lib/next-resource/catalan/ExtraCat.gf rename to next-lib/src/catalan/ExtraCat.gf diff --git a/lib/next-resource/catalan/ExtraCatAbs.gf b/next-lib/src/catalan/ExtraCatAbs.gf similarity index 100% rename from lib/next-resource/catalan/ExtraCatAbs.gf rename to next-lib/src/catalan/ExtraCatAbs.gf diff --git a/lib/next-resource/catalan/ExtraRomanceCat.gf b/next-lib/src/catalan/ExtraRomanceCat.gf similarity index 100% rename from lib/next-resource/catalan/ExtraRomanceCat.gf rename to next-lib/src/catalan/ExtraRomanceCat.gf diff --git a/lib/next-resource/catalan/GrammarCat.gf b/next-lib/src/catalan/GrammarCat.gf similarity index 100% rename from lib/next-resource/catalan/GrammarCat.gf rename to next-lib/src/catalan/GrammarCat.gf diff --git a/lib/next-resource/catalan/IdiomCat.gf b/next-lib/src/catalan/IdiomCat.gf similarity index 100% rename from lib/next-resource/catalan/IdiomCat.gf rename to next-lib/src/catalan/IdiomCat.gf diff --git a/lib/next-resource/catalan/IrregCat.gf b/next-lib/src/catalan/IrregCat.gf similarity index 100% rename from lib/next-resource/catalan/IrregCat.gf rename to next-lib/src/catalan/IrregCat.gf diff --git a/lib/next-resource/catalan/IrregCatAbs.gf b/next-lib/src/catalan/IrregCatAbs.gf similarity index 100% rename from lib/next-resource/catalan/IrregCatAbs.gf rename to next-lib/src/catalan/IrregCatAbs.gf diff --git a/lib/next-resource/catalan/LangCat.gf b/next-lib/src/catalan/LangCat.gf similarity index 100% rename from lib/next-resource/catalan/LangCat.gf rename to next-lib/src/catalan/LangCat.gf diff --git a/lib/next-resource/catalan/LexiconCat.gf b/next-lib/src/catalan/LexiconCat.gf similarity index 100% rename from lib/next-resource/catalan/LexiconCat.gf rename to next-lib/src/catalan/LexiconCat.gf diff --git a/lib/next-resource/catalan/MorphoCat.gf b/next-lib/src/catalan/MorphoCat.gf similarity index 100% rename from lib/next-resource/catalan/MorphoCat.gf rename to next-lib/src/catalan/MorphoCat.gf diff --git a/lib/next-resource/catalan/NounCat.gf b/next-lib/src/catalan/NounCat.gf similarity index 100% rename from lib/next-resource/catalan/NounCat.gf rename to next-lib/src/catalan/NounCat.gf diff --git a/lib/next-resource/catalan/NumeralCat.gf b/next-lib/src/catalan/NumeralCat.gf similarity index 100% rename from lib/next-resource/catalan/NumeralCat.gf rename to next-lib/src/catalan/NumeralCat.gf diff --git a/lib/next-resource/catalan/ParadigmsCat.gf b/next-lib/src/catalan/ParadigmsCat.gf similarity index 100% rename from lib/next-resource/catalan/ParadigmsCat.gf rename to next-lib/src/catalan/ParadigmsCat.gf diff --git a/lib/next-resource/catalan/PhonoCat.gf b/next-lib/src/catalan/PhonoCat.gf similarity index 100% rename from lib/next-resource/catalan/PhonoCat.gf rename to next-lib/src/catalan/PhonoCat.gf diff --git a/lib/next-resource/catalan/PhraseCat.gf b/next-lib/src/catalan/PhraseCat.gf similarity index 100% rename from lib/next-resource/catalan/PhraseCat.gf rename to next-lib/src/catalan/PhraseCat.gf diff --git a/lib/next-resource/catalan/QuestionCat.gf b/next-lib/src/catalan/QuestionCat.gf similarity index 100% rename from lib/next-resource/catalan/QuestionCat.gf rename to next-lib/src/catalan/QuestionCat.gf diff --git a/lib/next-resource/catalan/RelativeCat.gf b/next-lib/src/catalan/RelativeCat.gf similarity index 100% rename from lib/next-resource/catalan/RelativeCat.gf rename to next-lib/src/catalan/RelativeCat.gf diff --git a/lib/next-resource/catalan/ResCat.gf b/next-lib/src/catalan/ResCat.gf similarity index 100% rename from lib/next-resource/catalan/ResCat.gf rename to next-lib/src/catalan/ResCat.gf diff --git a/lib/next-resource/catalan/SentenceCat.gf b/next-lib/src/catalan/SentenceCat.gf similarity index 100% rename from lib/next-resource/catalan/SentenceCat.gf rename to next-lib/src/catalan/SentenceCat.gf diff --git a/lib/next-resource/catalan/StructuralCat.gf b/next-lib/src/catalan/StructuralCat.gf similarity index 100% rename from lib/next-resource/catalan/StructuralCat.gf rename to next-lib/src/catalan/StructuralCat.gf diff --git a/lib/next-resource/catalan/VerbCat.gf b/next-lib/src/catalan/VerbCat.gf similarity index 100% rename from lib/next-resource/catalan/VerbCat.gf rename to next-lib/src/catalan/VerbCat.gf diff --git a/lib/next-resource/common/CommonX.gf b/next-lib/src/common/CommonX.gf similarity index 100% rename from lib/next-resource/common/CommonX.gf rename to next-lib/src/common/CommonX.gf diff --git a/lib/next-resource/common/ConstructX.gf b/next-lib/src/common/ConstructX.gf similarity index 100% rename from lib/next-resource/common/ConstructX.gf rename to next-lib/src/common/ConstructX.gf diff --git a/lib/next-resource/common/Overload.gf b/next-lib/src/common/Overload.gf similarity index 100% rename from lib/next-resource/common/Overload.gf rename to next-lib/src/common/Overload.gf diff --git a/lib/next-resource/common/ParamX.gf b/next-lib/src/common/ParamX.gf similarity index 100% rename from lib/next-resource/common/ParamX.gf rename to next-lib/src/common/ParamX.gf diff --git a/lib/next-resource/common/TenseX.gf b/next-lib/src/common/TenseX.gf similarity index 100% rename from lib/next-resource/common/TenseX.gf rename to next-lib/src/common/TenseX.gf diff --git a/lib/next-resource/common/TextX.gf b/next-lib/src/common/TextX.gf similarity index 100% rename from lib/next-resource/common/TextX.gf rename to next-lib/src/common/TextX.gf diff --git a/lib/next-resource/danish/AdjectiveDan.gf b/next-lib/src/danish/AdjectiveDan.gf similarity index 100% rename from lib/next-resource/danish/AdjectiveDan.gf rename to next-lib/src/danish/AdjectiveDan.gf diff --git a/lib/next-resource/danish/AdverbDan.gf b/next-lib/src/danish/AdverbDan.gf similarity index 100% rename from lib/next-resource/danish/AdverbDan.gf rename to next-lib/src/danish/AdverbDan.gf diff --git a/lib/next-resource/danish/AllDan.gf b/next-lib/src/danish/AllDan.gf similarity index 100% rename from lib/next-resource/danish/AllDan.gf rename to next-lib/src/danish/AllDan.gf diff --git a/lib/next-resource/danish/AllDanAbs.gf b/next-lib/src/danish/AllDanAbs.gf similarity index 100% rename from lib/next-resource/danish/AllDanAbs.gf rename to next-lib/src/danish/AllDanAbs.gf diff --git a/lib/next-resource/danish/CatDan.gf b/next-lib/src/danish/CatDan.gf similarity index 100% rename from lib/next-resource/danish/CatDan.gf rename to next-lib/src/danish/CatDan.gf diff --git a/lib/next-resource/danish/ConjunctionDan.gf b/next-lib/src/danish/ConjunctionDan.gf similarity index 100% rename from lib/next-resource/danish/ConjunctionDan.gf rename to next-lib/src/danish/ConjunctionDan.gf diff --git a/lib/next-resource/danish/DiffDan.gf b/next-lib/src/danish/DiffDan.gf similarity index 100% rename from lib/next-resource/danish/DiffDan.gf rename to next-lib/src/danish/DiffDan.gf diff --git a/lib/next-resource/danish/ExtraDan.gf b/next-lib/src/danish/ExtraDan.gf similarity index 100% rename from lib/next-resource/danish/ExtraDan.gf rename to next-lib/src/danish/ExtraDan.gf diff --git a/lib/next-resource/danish/ExtraDanAbs.gf b/next-lib/src/danish/ExtraDanAbs.gf similarity index 100% rename from lib/next-resource/danish/ExtraDanAbs.gf rename to next-lib/src/danish/ExtraDanAbs.gf diff --git a/lib/next-resource/danish/ExtraScandDan.gf b/next-lib/src/danish/ExtraScandDan.gf similarity index 100% rename from lib/next-resource/danish/ExtraScandDan.gf rename to next-lib/src/danish/ExtraScandDan.gf diff --git a/lib/next-resource/danish/GrammarDan.gf b/next-lib/src/danish/GrammarDan.gf similarity index 100% rename from lib/next-resource/danish/GrammarDan.gf rename to next-lib/src/danish/GrammarDan.gf diff --git a/lib/next-resource/danish/IdiomDan.gf b/next-lib/src/danish/IdiomDan.gf similarity index 100% rename from lib/next-resource/danish/IdiomDan.gf rename to next-lib/src/danish/IdiomDan.gf diff --git a/lib/next-resource/danish/IrregDan.gf b/next-lib/src/danish/IrregDan.gf similarity index 100% rename from lib/next-resource/danish/IrregDan.gf rename to next-lib/src/danish/IrregDan.gf diff --git a/lib/next-resource/danish/IrregDanAbs.gf b/next-lib/src/danish/IrregDanAbs.gf similarity index 100% rename from lib/next-resource/danish/IrregDanAbs.gf rename to next-lib/src/danish/IrregDanAbs.gf diff --git a/lib/next-resource/danish/LangDan.gf b/next-lib/src/danish/LangDan.gf similarity index 100% rename from lib/next-resource/danish/LangDan.gf rename to next-lib/src/danish/LangDan.gf diff --git a/lib/next-resource/danish/LexiconDan.gf b/next-lib/src/danish/LexiconDan.gf similarity index 100% rename from lib/next-resource/danish/LexiconDan.gf rename to next-lib/src/danish/LexiconDan.gf diff --git a/lib/next-resource/danish/MathDan.gf b/next-lib/src/danish/MathDan.gf similarity index 100% rename from lib/next-resource/danish/MathDan.gf rename to next-lib/src/danish/MathDan.gf diff --git a/lib/next-resource/danish/MorphoDan.gf b/next-lib/src/danish/MorphoDan.gf similarity index 100% rename from lib/next-resource/danish/MorphoDan.gf rename to next-lib/src/danish/MorphoDan.gf diff --git a/lib/next-resource/danish/NounDan.gf b/next-lib/src/danish/NounDan.gf similarity index 100% rename from lib/next-resource/danish/NounDan.gf rename to next-lib/src/danish/NounDan.gf diff --git a/lib/next-resource/danish/NumeralDan.gf b/next-lib/src/danish/NumeralDan.gf similarity index 100% rename from lib/next-resource/danish/NumeralDan.gf rename to next-lib/src/danish/NumeralDan.gf diff --git a/lib/next-resource/danish/ParadigmsDan.gf b/next-lib/src/danish/ParadigmsDan.gf similarity index 100% rename from lib/next-resource/danish/ParadigmsDan.gf rename to next-lib/src/danish/ParadigmsDan.gf diff --git a/lib/next-resource/danish/PhraseDan.gf b/next-lib/src/danish/PhraseDan.gf similarity index 100% rename from lib/next-resource/danish/PhraseDan.gf rename to next-lib/src/danish/PhraseDan.gf diff --git a/lib/next-resource/danish/QuestionDan.gf b/next-lib/src/danish/QuestionDan.gf similarity index 100% rename from lib/next-resource/danish/QuestionDan.gf rename to next-lib/src/danish/QuestionDan.gf diff --git a/lib/next-resource/danish/RelativeDan.gf b/next-lib/src/danish/RelativeDan.gf similarity index 100% rename from lib/next-resource/danish/RelativeDan.gf rename to next-lib/src/danish/RelativeDan.gf diff --git a/lib/next-resource/danish/ResDan.gf b/next-lib/src/danish/ResDan.gf similarity index 100% rename from lib/next-resource/danish/ResDan.gf rename to next-lib/src/danish/ResDan.gf diff --git a/lib/next-resource/danish/SentenceDan.gf b/next-lib/src/danish/SentenceDan.gf similarity index 100% rename from lib/next-resource/danish/SentenceDan.gf rename to next-lib/src/danish/SentenceDan.gf diff --git a/lib/next-resource/danish/StructuralDan.gf b/next-lib/src/danish/StructuralDan.gf similarity index 100% rename from lib/next-resource/danish/StructuralDan.gf rename to next-lib/src/danish/StructuralDan.gf diff --git a/lib/next-resource/danish/VerbDan.gf b/next-lib/src/danish/VerbDan.gf similarity index 100% rename from lib/next-resource/danish/VerbDan.gf rename to next-lib/src/danish/VerbDan.gf diff --git a/lib/next-resource/demo/Add.gf b/next-lib/src/demo/Add.gf similarity index 100% rename from lib/next-resource/demo/Add.gf rename to next-lib/src/demo/Add.gf diff --git a/lib/next-resource/demo/Clause.gf b/next-lib/src/demo/Clause.gf similarity index 100% rename from lib/next-resource/demo/Clause.gf rename to next-lib/src/demo/Clause.gf diff --git a/lib/next-resource/demo/ClauseAra.gf b/next-lib/src/demo/ClauseAra.gf similarity index 100% rename from lib/next-resource/demo/ClauseAra.gf rename to next-lib/src/demo/ClauseAra.gf diff --git a/lib/next-resource/demo/ClauseBul.gf b/next-lib/src/demo/ClauseBul.gf similarity index 100% rename from lib/next-resource/demo/ClauseBul.gf rename to next-lib/src/demo/ClauseBul.gf diff --git a/lib/next-resource/demo/ClauseCat.gf b/next-lib/src/demo/ClauseCat.gf similarity index 100% rename from lib/next-resource/demo/ClauseCat.gf rename to next-lib/src/demo/ClauseCat.gf diff --git a/lib/next-resource/demo/ClauseDan.gf b/next-lib/src/demo/ClauseDan.gf similarity index 100% rename from lib/next-resource/demo/ClauseDan.gf rename to next-lib/src/demo/ClauseDan.gf diff --git a/lib/next-resource/demo/ClauseEng.gf b/next-lib/src/demo/ClauseEng.gf similarity index 100% rename from lib/next-resource/demo/ClauseEng.gf rename to next-lib/src/demo/ClauseEng.gf diff --git a/lib/next-resource/demo/ClauseFin.gf b/next-lib/src/demo/ClauseFin.gf similarity index 100% rename from lib/next-resource/demo/ClauseFin.gf rename to next-lib/src/demo/ClauseFin.gf diff --git a/lib/next-resource/demo/ClauseFre.gf b/next-lib/src/demo/ClauseFre.gf similarity index 100% rename from lib/next-resource/demo/ClauseFre.gf rename to next-lib/src/demo/ClauseFre.gf diff --git a/lib/next-resource/demo/ClauseGer.gf b/next-lib/src/demo/ClauseGer.gf similarity index 100% rename from lib/next-resource/demo/ClauseGer.gf rename to next-lib/src/demo/ClauseGer.gf diff --git a/lib/next-resource/demo/ClauseI.gf b/next-lib/src/demo/ClauseI.gf similarity index 100% rename from lib/next-resource/demo/ClauseI.gf rename to next-lib/src/demo/ClauseI.gf diff --git a/lib/next-resource/demo/ClauseIta.gf b/next-lib/src/demo/ClauseIta.gf similarity index 100% rename from lib/next-resource/demo/ClauseIta.gf rename to next-lib/src/demo/ClauseIta.gf diff --git a/lib/next-resource/demo/ClauseNor.gf b/next-lib/src/demo/ClauseNor.gf similarity index 100% rename from lib/next-resource/demo/ClauseNor.gf rename to next-lib/src/demo/ClauseNor.gf diff --git a/lib/next-resource/demo/ClauseRus.gf b/next-lib/src/demo/ClauseRus.gf similarity index 100% rename from lib/next-resource/demo/ClauseRus.gf rename to next-lib/src/demo/ClauseRus.gf diff --git a/lib/next-resource/demo/ClauseSpa.gf b/next-lib/src/demo/ClauseSpa.gf similarity index 100% rename from lib/next-resource/demo/ClauseSpa.gf rename to next-lib/src/demo/ClauseSpa.gf diff --git a/lib/next-resource/demo/ClauseSwe.gf b/next-lib/src/demo/ClauseSwe.gf similarity index 100% rename from lib/next-resource/demo/ClauseSwe.gf rename to next-lib/src/demo/ClauseSwe.gf diff --git a/lib/next-resource/demo/Demo.gf b/next-lib/src/demo/Demo.gf similarity index 100% rename from lib/next-resource/demo/Demo.gf rename to next-lib/src/demo/Demo.gf diff --git a/lib/next-resource/demo/DemoAra.gf b/next-lib/src/demo/DemoAra.gf similarity index 100% rename from lib/next-resource/demo/DemoAra.gf rename to next-lib/src/demo/DemoAra.gf diff --git a/lib/next-resource/demo/DemoBul.gf b/next-lib/src/demo/DemoBul.gf similarity index 100% rename from lib/next-resource/demo/DemoBul.gf rename to next-lib/src/demo/DemoBul.gf diff --git a/lib/next-resource/demo/DemoCat.gf b/next-lib/src/demo/DemoCat.gf similarity index 100% rename from lib/next-resource/demo/DemoCat.gf rename to next-lib/src/demo/DemoCat.gf diff --git a/lib/next-resource/demo/DemoDan.gf b/next-lib/src/demo/DemoDan.gf similarity index 100% rename from lib/next-resource/demo/DemoDan.gf rename to next-lib/src/demo/DemoDan.gf diff --git a/lib/next-resource/demo/DemoEng.gf b/next-lib/src/demo/DemoEng.gf similarity index 100% rename from lib/next-resource/demo/DemoEng.gf rename to next-lib/src/demo/DemoEng.gf diff --git a/lib/next-resource/demo/DemoFin.gf b/next-lib/src/demo/DemoFin.gf similarity index 100% rename from lib/next-resource/demo/DemoFin.gf rename to next-lib/src/demo/DemoFin.gf diff --git a/lib/next-resource/demo/DemoFre.gf b/next-lib/src/demo/DemoFre.gf similarity index 100% rename from lib/next-resource/demo/DemoFre.gf rename to next-lib/src/demo/DemoFre.gf diff --git a/lib/next-resource/demo/DemoGer.gf b/next-lib/src/demo/DemoGer.gf similarity index 100% rename from lib/next-resource/demo/DemoGer.gf rename to next-lib/src/demo/DemoGer.gf diff --git a/lib/next-resource/demo/DemoHin.gf b/next-lib/src/demo/DemoHin.gf similarity index 100% rename from lib/next-resource/demo/DemoHin.gf rename to next-lib/src/demo/DemoHin.gf diff --git a/lib/next-resource/demo/DemoIna.gf b/next-lib/src/demo/DemoIna.gf similarity index 100% rename from lib/next-resource/demo/DemoIna.gf rename to next-lib/src/demo/DemoIna.gf diff --git a/lib/next-resource/demo/DemoIta.gf b/next-lib/src/demo/DemoIta.gf similarity index 100% rename from lib/next-resource/demo/DemoIta.gf rename to next-lib/src/demo/DemoIta.gf diff --git a/lib/next-resource/demo/DemoJ.gf b/next-lib/src/demo/DemoJ.gf similarity index 100% rename from lib/next-resource/demo/DemoJ.gf rename to next-lib/src/demo/DemoJ.gf diff --git a/lib/next-resource/demo/DemoJEng.gf b/next-lib/src/demo/DemoJEng.gf similarity index 100% rename from lib/next-resource/demo/DemoJEng.gf rename to next-lib/src/demo/DemoJEng.gf diff --git a/lib/next-resource/demo/DemoNor.gf b/next-lib/src/demo/DemoNor.gf similarity index 100% rename from lib/next-resource/demo/DemoNor.gf rename to next-lib/src/demo/DemoNor.gf diff --git a/lib/next-resource/demo/DemoRus.gf b/next-lib/src/demo/DemoRus.gf similarity index 100% rename from lib/next-resource/demo/DemoRus.gf rename to next-lib/src/demo/DemoRus.gf diff --git a/lib/next-resource/demo/DemoSpa.gf b/next-lib/src/demo/DemoSpa.gf similarity index 100% rename from lib/next-resource/demo/DemoSpa.gf rename to next-lib/src/demo/DemoSpa.gf diff --git a/lib/next-resource/demo/DemoSwe.gf b/next-lib/src/demo/DemoSwe.gf similarity index 100% rename from lib/next-resource/demo/DemoSwe.gf rename to next-lib/src/demo/DemoSwe.gf diff --git a/lib/next-resource/demo/DemoTha.gf b/next-lib/src/demo/DemoTha.gf similarity index 100% rename from lib/next-resource/demo/DemoTha.gf rename to next-lib/src/demo/DemoTha.gf diff --git a/lib/next-resource/english/AdjectiveEng.gf b/next-lib/src/english/AdjectiveEng.gf similarity index 100% rename from lib/next-resource/english/AdjectiveEng.gf rename to next-lib/src/english/AdjectiveEng.gf diff --git a/lib/next-resource/english/AdverbEng.gf b/next-lib/src/english/AdverbEng.gf similarity index 100% rename from lib/next-resource/english/AdverbEng.gf rename to next-lib/src/english/AdverbEng.gf diff --git a/lib/next-resource/english/AllEng.gf b/next-lib/src/english/AllEng.gf similarity index 100% rename from lib/next-resource/english/AllEng.gf rename to next-lib/src/english/AllEng.gf diff --git a/lib/next-resource/english/AllEngAbs.gf b/next-lib/src/english/AllEngAbs.gf similarity index 100% rename from lib/next-resource/english/AllEngAbs.gf rename to next-lib/src/english/AllEngAbs.gf diff --git a/lib/next-resource/english/BackwardEng.gf b/next-lib/src/english/BackwardEng.gf similarity index 100% rename from lib/next-resource/english/BackwardEng.gf rename to next-lib/src/english/BackwardEng.gf diff --git a/lib/next-resource/english/CatEng.gf b/next-lib/src/english/CatEng.gf similarity index 100% rename from lib/next-resource/english/CatEng.gf rename to next-lib/src/english/CatEng.gf diff --git a/lib/next-resource/english/ConjunctionEng.gf b/next-lib/src/english/ConjunctionEng.gf similarity index 100% rename from lib/next-resource/english/ConjunctionEng.gf rename to next-lib/src/english/ConjunctionEng.gf diff --git a/lib/next-resource/english/ExtraEng.gf b/next-lib/src/english/ExtraEng.gf similarity index 100% rename from lib/next-resource/english/ExtraEng.gf rename to next-lib/src/english/ExtraEng.gf diff --git a/lib/next-resource/english/ExtraEngAbs.gf b/next-lib/src/english/ExtraEngAbs.gf similarity index 100% rename from lib/next-resource/english/ExtraEngAbs.gf rename to next-lib/src/english/ExtraEngAbs.gf diff --git a/lib/next-resource/english/GrammarEng.gf b/next-lib/src/english/GrammarEng.gf similarity index 100% rename from lib/next-resource/english/GrammarEng.gf rename to next-lib/src/english/GrammarEng.gf diff --git a/lib/next-resource/english/IdiomEng.gf b/next-lib/src/english/IdiomEng.gf similarity index 100% rename from lib/next-resource/english/IdiomEng.gf rename to next-lib/src/english/IdiomEng.gf diff --git a/lib/next-resource/english/IrregEng.gf b/next-lib/src/english/IrregEng.gf similarity index 100% rename from lib/next-resource/english/IrregEng.gf rename to next-lib/src/english/IrregEng.gf diff --git a/lib/next-resource/english/IrregEngAbs.gf b/next-lib/src/english/IrregEngAbs.gf similarity index 100% rename from lib/next-resource/english/IrregEngAbs.gf rename to next-lib/src/english/IrregEngAbs.gf diff --git a/lib/next-resource/english/LangEng.gf b/next-lib/src/english/LangEng.gf similarity index 100% rename from lib/next-resource/english/LangEng.gf rename to next-lib/src/english/LangEng.gf diff --git a/lib/next-resource/english/LexiconEng.gf b/next-lib/src/english/LexiconEng.gf similarity index 100% rename from lib/next-resource/english/LexiconEng.gf rename to next-lib/src/english/LexiconEng.gf diff --git a/lib/next-resource/english/MorphoEng.gf b/next-lib/src/english/MorphoEng.gf similarity index 100% rename from lib/next-resource/english/MorphoEng.gf rename to next-lib/src/english/MorphoEng.gf diff --git a/lib/next-resource/english/NounEng.gf b/next-lib/src/english/NounEng.gf similarity index 100% rename from lib/next-resource/english/NounEng.gf rename to next-lib/src/english/NounEng.gf diff --git a/lib/next-resource/english/NumeralEng.gf b/next-lib/src/english/NumeralEng.gf similarity index 100% rename from lib/next-resource/english/NumeralEng.gf rename to next-lib/src/english/NumeralEng.gf diff --git a/lib/next-resource/english/OverloadEng.gf b/next-lib/src/english/OverloadEng.gf similarity index 100% rename from lib/next-resource/english/OverloadEng.gf rename to next-lib/src/english/OverloadEng.gf diff --git a/lib/next-resource/english/ParadigmsEng.gf b/next-lib/src/english/ParadigmsEng.gf similarity index 100% rename from lib/next-resource/english/ParadigmsEng.gf rename to next-lib/src/english/ParadigmsEng.gf diff --git a/lib/next-resource/english/PhraseEng.gf b/next-lib/src/english/PhraseEng.gf similarity index 100% rename from lib/next-resource/english/PhraseEng.gf rename to next-lib/src/english/PhraseEng.gf diff --git a/lib/next-resource/english/QuestionEng.gf b/next-lib/src/english/QuestionEng.gf similarity index 100% rename from lib/next-resource/english/QuestionEng.gf rename to next-lib/src/english/QuestionEng.gf diff --git a/lib/next-resource/english/RelativeEng.gf b/next-lib/src/english/RelativeEng.gf similarity index 100% rename from lib/next-resource/english/RelativeEng.gf rename to next-lib/src/english/RelativeEng.gf diff --git a/lib/next-resource/english/ResEng.gf b/next-lib/src/english/ResEng.gf similarity index 100% rename from lib/next-resource/english/ResEng.gf rename to next-lib/src/english/ResEng.gf diff --git a/lib/next-resource/english/SentenceEng.gf b/next-lib/src/english/SentenceEng.gf similarity index 100% rename from lib/next-resource/english/SentenceEng.gf rename to next-lib/src/english/SentenceEng.gf diff --git a/lib/next-resource/english/StructuralEng.gf b/next-lib/src/english/StructuralEng.gf similarity index 100% rename from lib/next-resource/english/StructuralEng.gf rename to next-lib/src/english/StructuralEng.gf diff --git a/lib/next-resource/english/SymbolEng.gf b/next-lib/src/english/SymbolEng.gf similarity index 100% rename from lib/next-resource/english/SymbolEng.gf rename to next-lib/src/english/SymbolEng.gf diff --git a/lib/next-resource/english/VerbEng.gf b/next-lib/src/english/VerbEng.gf similarity index 100% rename from lib/next-resource/english/VerbEng.gf rename to next-lib/src/english/VerbEng.gf diff --git a/lib/next-resource/exx-resource.gft b/next-lib/src/exx-resource.gft similarity index 100% rename from lib/next-resource/exx-resource.gft rename to next-lib/src/exx-resource.gft diff --git a/lib/next-resource/finnish/AdjectiveFin.gf b/next-lib/src/finnish/AdjectiveFin.gf similarity index 100% rename from lib/next-resource/finnish/AdjectiveFin.gf rename to next-lib/src/finnish/AdjectiveFin.gf diff --git a/lib/next-resource/finnish/AdverbFin.gf b/next-lib/src/finnish/AdverbFin.gf similarity index 100% rename from lib/next-resource/finnish/AdverbFin.gf rename to next-lib/src/finnish/AdverbFin.gf diff --git a/lib/next-resource/finnish/AllFin.gf b/next-lib/src/finnish/AllFin.gf similarity index 100% rename from lib/next-resource/finnish/AllFin.gf rename to next-lib/src/finnish/AllFin.gf diff --git a/lib/next-resource/finnish/AllFinAbs.gf b/next-lib/src/finnish/AllFinAbs.gf similarity index 100% rename from lib/next-resource/finnish/AllFinAbs.gf rename to next-lib/src/finnish/AllFinAbs.gf diff --git a/lib/next-resource/finnish/CatFin.gf b/next-lib/src/finnish/CatFin.gf similarity index 100% rename from lib/next-resource/finnish/CatFin.gf rename to next-lib/src/finnish/CatFin.gf diff --git a/lib/next-resource/finnish/ConjunctionFin.gf b/next-lib/src/finnish/ConjunctionFin.gf similarity index 100% rename from lib/next-resource/finnish/ConjunctionFin.gf rename to next-lib/src/finnish/ConjunctionFin.gf diff --git a/lib/next-resource/finnish/ExtraFin.gf b/next-lib/src/finnish/ExtraFin.gf similarity index 100% rename from lib/next-resource/finnish/ExtraFin.gf rename to next-lib/src/finnish/ExtraFin.gf diff --git a/lib/next-resource/finnish/ExtraFinAbs.gf b/next-lib/src/finnish/ExtraFinAbs.gf similarity index 100% rename from lib/next-resource/finnish/ExtraFinAbs.gf rename to next-lib/src/finnish/ExtraFinAbs.gf diff --git a/lib/next-resource/finnish/GrammarFin.gf b/next-lib/src/finnish/GrammarFin.gf similarity index 100% rename from lib/next-resource/finnish/GrammarFin.gf rename to next-lib/src/finnish/GrammarFin.gf diff --git a/lib/next-resource/finnish/IdiomFin.gf b/next-lib/src/finnish/IdiomFin.gf similarity index 100% rename from lib/next-resource/finnish/IdiomFin.gf rename to next-lib/src/finnish/IdiomFin.gf diff --git a/lib/next-resource/finnish/LangFin.gf b/next-lib/src/finnish/LangFin.gf similarity index 100% rename from lib/next-resource/finnish/LangFin.gf rename to next-lib/src/finnish/LangFin.gf diff --git a/lib/next-resource/finnish/LexiconFin.gf b/next-lib/src/finnish/LexiconFin.gf similarity index 100% rename from lib/next-resource/finnish/LexiconFin.gf rename to next-lib/src/finnish/LexiconFin.gf diff --git a/lib/next-resource/finnish/MorphoFin.gf b/next-lib/src/finnish/MorphoFin.gf similarity index 100% rename from lib/next-resource/finnish/MorphoFin.gf rename to next-lib/src/finnish/MorphoFin.gf diff --git a/lib/next-resource/finnish/NounFin.gf b/next-lib/src/finnish/NounFin.gf similarity index 100% rename from lib/next-resource/finnish/NounFin.gf rename to next-lib/src/finnish/NounFin.gf diff --git a/lib/next-resource/finnish/NumeralFin.gf b/next-lib/src/finnish/NumeralFin.gf similarity index 100% rename from lib/next-resource/finnish/NumeralFin.gf rename to next-lib/src/finnish/NumeralFin.gf diff --git a/lib/next-resource/finnish/ParadigmsFin.gf b/next-lib/src/finnish/ParadigmsFin.gf similarity index 100% rename from lib/next-resource/finnish/ParadigmsFin.gf rename to next-lib/src/finnish/ParadigmsFin.gf diff --git a/lib/next-resource/finnish/PhraseFin.gf b/next-lib/src/finnish/PhraseFin.gf similarity index 100% rename from lib/next-resource/finnish/PhraseFin.gf rename to next-lib/src/finnish/PhraseFin.gf diff --git a/lib/next-resource/finnish/QuestionFin.gf b/next-lib/src/finnish/QuestionFin.gf similarity index 100% rename from lib/next-resource/finnish/QuestionFin.gf rename to next-lib/src/finnish/QuestionFin.gf diff --git a/lib/next-resource/finnish/RelativeFin.gf b/next-lib/src/finnish/RelativeFin.gf similarity index 100% rename from lib/next-resource/finnish/RelativeFin.gf rename to next-lib/src/finnish/RelativeFin.gf diff --git a/lib/next-resource/finnish/ResFin.gf b/next-lib/src/finnish/ResFin.gf similarity index 100% rename from lib/next-resource/finnish/ResFin.gf rename to next-lib/src/finnish/ResFin.gf diff --git a/lib/next-resource/finnish/SentenceFin.gf b/next-lib/src/finnish/SentenceFin.gf similarity index 100% rename from lib/next-resource/finnish/SentenceFin.gf rename to next-lib/src/finnish/SentenceFin.gf diff --git a/lib/next-resource/finnish/StructuralFin.gf b/next-lib/src/finnish/StructuralFin.gf similarity index 100% rename from lib/next-resource/finnish/StructuralFin.gf rename to next-lib/src/finnish/StructuralFin.gf diff --git a/lib/next-resource/finnish/VerbFin.gf b/next-lib/src/finnish/VerbFin.gf similarity index 100% rename from lib/next-resource/finnish/VerbFin.gf rename to next-lib/src/finnish/VerbFin.gf diff --git a/lib/next-resource/french/AdjectiveFre.gf b/next-lib/src/french/AdjectiveFre.gf similarity index 100% rename from lib/next-resource/french/AdjectiveFre.gf rename to next-lib/src/french/AdjectiveFre.gf diff --git a/lib/next-resource/french/AdverbFre.gf b/next-lib/src/french/AdverbFre.gf similarity index 100% rename from lib/next-resource/french/AdverbFre.gf rename to next-lib/src/french/AdverbFre.gf diff --git a/lib/next-resource/french/AllFre.gf b/next-lib/src/french/AllFre.gf similarity index 100% rename from lib/next-resource/french/AllFre.gf rename to next-lib/src/french/AllFre.gf diff --git a/lib/next-resource/french/AllFreAbs.gf b/next-lib/src/french/AllFreAbs.gf similarity index 100% rename from lib/next-resource/french/AllFreAbs.gf rename to next-lib/src/french/AllFreAbs.gf diff --git a/lib/next-resource/french/BeschFre.gf b/next-lib/src/french/BeschFre.gf similarity index 100% rename from lib/next-resource/french/BeschFre.gf rename to next-lib/src/french/BeschFre.gf diff --git a/lib/next-resource/french/CatFre.gf b/next-lib/src/french/CatFre.gf similarity index 100% rename from lib/next-resource/french/CatFre.gf rename to next-lib/src/french/CatFre.gf diff --git a/lib/next-resource/french/ConjunctionFre.gf b/next-lib/src/french/ConjunctionFre.gf similarity index 100% rename from lib/next-resource/french/ConjunctionFre.gf rename to next-lib/src/french/ConjunctionFre.gf diff --git a/lib/next-resource/french/DiffFre.gf b/next-lib/src/french/DiffFre.gf similarity index 100% rename from lib/next-resource/french/DiffFre.gf rename to next-lib/src/french/DiffFre.gf diff --git a/lib/next-resource/french/ExtraFre.gf b/next-lib/src/french/ExtraFre.gf similarity index 100% rename from lib/next-resource/french/ExtraFre.gf rename to next-lib/src/french/ExtraFre.gf diff --git a/lib/next-resource/french/ExtraFreAbs.gf b/next-lib/src/french/ExtraFreAbs.gf similarity index 100% rename from lib/next-resource/french/ExtraFreAbs.gf rename to next-lib/src/french/ExtraFreAbs.gf diff --git a/lib/next-resource/french/ExtraRomanceFre.gf b/next-lib/src/french/ExtraRomanceFre.gf similarity index 100% rename from lib/next-resource/french/ExtraRomanceFre.gf rename to next-lib/src/french/ExtraRomanceFre.gf diff --git a/lib/next-resource/french/GrammarFre.gf b/next-lib/src/french/GrammarFre.gf similarity index 100% rename from lib/next-resource/french/GrammarFre.gf rename to next-lib/src/french/GrammarFre.gf diff --git a/lib/next-resource/french/IdiomFre.gf b/next-lib/src/french/IdiomFre.gf similarity index 100% rename from lib/next-resource/french/IdiomFre.gf rename to next-lib/src/french/IdiomFre.gf diff --git a/lib/next-resource/french/IrregFre.gf b/next-lib/src/french/IrregFre.gf similarity index 100% rename from lib/next-resource/french/IrregFre.gf rename to next-lib/src/french/IrregFre.gf diff --git a/lib/next-resource/french/IrregFreAbs.gf b/next-lib/src/french/IrregFreAbs.gf similarity index 100% rename from lib/next-resource/french/IrregFreAbs.gf rename to next-lib/src/french/IrregFreAbs.gf diff --git a/lib/next-resource/french/LangFre.gf b/next-lib/src/french/LangFre.gf similarity index 100% rename from lib/next-resource/french/LangFre.gf rename to next-lib/src/french/LangFre.gf diff --git a/lib/next-resource/french/LexiconFre.gf b/next-lib/src/french/LexiconFre.gf similarity index 100% rename from lib/next-resource/french/LexiconFre.gf rename to next-lib/src/french/LexiconFre.gf diff --git a/lib/next-resource/french/MorphoFre.gf b/next-lib/src/french/MorphoFre.gf similarity index 100% rename from lib/next-resource/french/MorphoFre.gf rename to next-lib/src/french/MorphoFre.gf diff --git a/lib/next-resource/french/NounFre.gf b/next-lib/src/french/NounFre.gf similarity index 100% rename from lib/next-resource/french/NounFre.gf rename to next-lib/src/french/NounFre.gf diff --git a/lib/next-resource/french/NumeralFre.gf b/next-lib/src/french/NumeralFre.gf similarity index 100% rename from lib/next-resource/french/NumeralFre.gf rename to next-lib/src/french/NumeralFre.gf diff --git a/lib/next-resource/french/ParadigmsFre.gf b/next-lib/src/french/ParadigmsFre.gf similarity index 100% rename from lib/next-resource/french/ParadigmsFre.gf rename to next-lib/src/french/ParadigmsFre.gf diff --git a/lib/next-resource/french/PhonoFre.gf b/next-lib/src/french/PhonoFre.gf similarity index 100% rename from lib/next-resource/french/PhonoFre.gf rename to next-lib/src/french/PhonoFre.gf diff --git a/lib/next-resource/french/PhraseFre.gf b/next-lib/src/french/PhraseFre.gf similarity index 100% rename from lib/next-resource/french/PhraseFre.gf rename to next-lib/src/french/PhraseFre.gf diff --git a/lib/next-resource/french/QuestionFre.gf b/next-lib/src/french/QuestionFre.gf similarity index 100% rename from lib/next-resource/french/QuestionFre.gf rename to next-lib/src/french/QuestionFre.gf diff --git a/lib/next-resource/french/RelativeFre.gf b/next-lib/src/french/RelativeFre.gf similarity index 100% rename from lib/next-resource/french/RelativeFre.gf rename to next-lib/src/french/RelativeFre.gf diff --git a/lib/next-resource/french/ResFre.gf b/next-lib/src/french/ResFre.gf similarity index 100% rename from lib/next-resource/french/ResFre.gf rename to next-lib/src/french/ResFre.gf diff --git a/lib/next-resource/french/SentenceFre.gf b/next-lib/src/french/SentenceFre.gf similarity index 100% rename from lib/next-resource/french/SentenceFre.gf rename to next-lib/src/french/SentenceFre.gf diff --git a/lib/next-resource/french/StructuralFre.gf b/next-lib/src/french/StructuralFre.gf similarity index 100% rename from lib/next-resource/french/StructuralFre.gf rename to next-lib/src/french/StructuralFre.gf diff --git a/lib/next-resource/french/VerbFre.gf b/next-lib/src/french/VerbFre.gf similarity index 100% rename from lib/next-resource/french/VerbFre.gf rename to next-lib/src/french/VerbFre.gf diff --git a/lib/next-resource/italian/AdjectiveIta.gf b/next-lib/src/italian/AdjectiveIta.gf similarity index 100% rename from lib/next-resource/italian/AdjectiveIta.gf rename to next-lib/src/italian/AdjectiveIta.gf diff --git a/lib/next-resource/italian/AdverbIta.gf b/next-lib/src/italian/AdverbIta.gf similarity index 100% rename from lib/next-resource/italian/AdverbIta.gf rename to next-lib/src/italian/AdverbIta.gf diff --git a/lib/next-resource/italian/AllIta.gf b/next-lib/src/italian/AllIta.gf similarity index 100% rename from lib/next-resource/italian/AllIta.gf rename to next-lib/src/italian/AllIta.gf diff --git a/lib/next-resource/italian/AllItaAbs.gf b/next-lib/src/italian/AllItaAbs.gf similarity index 100% rename from lib/next-resource/italian/AllItaAbs.gf rename to next-lib/src/italian/AllItaAbs.gf diff --git a/lib/next-resource/italian/BeschIta.gf b/next-lib/src/italian/BeschIta.gf similarity index 100% rename from lib/next-resource/italian/BeschIta.gf rename to next-lib/src/italian/BeschIta.gf diff --git a/lib/next-resource/italian/CatIta.gf b/next-lib/src/italian/CatIta.gf similarity index 100% rename from lib/next-resource/italian/CatIta.gf rename to next-lib/src/italian/CatIta.gf diff --git a/lib/next-resource/italian/ConjunctionIta.gf b/next-lib/src/italian/ConjunctionIta.gf similarity index 100% rename from lib/next-resource/italian/ConjunctionIta.gf rename to next-lib/src/italian/ConjunctionIta.gf diff --git a/lib/next-resource/italian/DiffIta.gf b/next-lib/src/italian/DiffIta.gf similarity index 100% rename from lib/next-resource/italian/DiffIta.gf rename to next-lib/src/italian/DiffIta.gf diff --git a/lib/next-resource/italian/ExtraIta.gf b/next-lib/src/italian/ExtraIta.gf similarity index 100% rename from lib/next-resource/italian/ExtraIta.gf rename to next-lib/src/italian/ExtraIta.gf diff --git a/lib/next-resource/italian/ExtraItaAbs.gf b/next-lib/src/italian/ExtraItaAbs.gf similarity index 100% rename from lib/next-resource/italian/ExtraItaAbs.gf rename to next-lib/src/italian/ExtraItaAbs.gf diff --git a/lib/next-resource/italian/ExtraRomanceIta.gf b/next-lib/src/italian/ExtraRomanceIta.gf similarity index 100% rename from lib/next-resource/italian/ExtraRomanceIta.gf rename to next-lib/src/italian/ExtraRomanceIta.gf diff --git a/lib/next-resource/italian/GrammarIta.gf b/next-lib/src/italian/GrammarIta.gf similarity index 100% rename from lib/next-resource/italian/GrammarIta.gf rename to next-lib/src/italian/GrammarIta.gf diff --git a/lib/next-resource/italian/IdiomIta.gf b/next-lib/src/italian/IdiomIta.gf similarity index 100% rename from lib/next-resource/italian/IdiomIta.gf rename to next-lib/src/italian/IdiomIta.gf diff --git a/lib/next-resource/italian/LangIta.gf b/next-lib/src/italian/LangIta.gf similarity index 100% rename from lib/next-resource/italian/LangIta.gf rename to next-lib/src/italian/LangIta.gf diff --git a/lib/next-resource/italian/LexiconIta.gf b/next-lib/src/italian/LexiconIta.gf similarity index 100% rename from lib/next-resource/italian/LexiconIta.gf rename to next-lib/src/italian/LexiconIta.gf diff --git a/lib/next-resource/italian/MorphoIta.gf b/next-lib/src/italian/MorphoIta.gf similarity index 100% rename from lib/next-resource/italian/MorphoIta.gf rename to next-lib/src/italian/MorphoIta.gf diff --git a/lib/next-resource/italian/NounIta.gf b/next-lib/src/italian/NounIta.gf similarity index 100% rename from lib/next-resource/italian/NounIta.gf rename to next-lib/src/italian/NounIta.gf diff --git a/lib/next-resource/italian/NumeralIta.gf b/next-lib/src/italian/NumeralIta.gf similarity index 100% rename from lib/next-resource/italian/NumeralIta.gf rename to next-lib/src/italian/NumeralIta.gf diff --git a/lib/next-resource/italian/ParadigmsIta.gf b/next-lib/src/italian/ParadigmsIta.gf similarity index 100% rename from lib/next-resource/italian/ParadigmsIta.gf rename to next-lib/src/italian/ParadigmsIta.gf diff --git a/lib/next-resource/italian/PhonoIta.gf b/next-lib/src/italian/PhonoIta.gf similarity index 100% rename from lib/next-resource/italian/PhonoIta.gf rename to next-lib/src/italian/PhonoIta.gf diff --git a/lib/next-resource/italian/PhraseIta.gf b/next-lib/src/italian/PhraseIta.gf similarity index 100% rename from lib/next-resource/italian/PhraseIta.gf rename to next-lib/src/italian/PhraseIta.gf diff --git a/lib/next-resource/italian/QuestionIta.gf b/next-lib/src/italian/QuestionIta.gf similarity index 100% rename from lib/next-resource/italian/QuestionIta.gf rename to next-lib/src/italian/QuestionIta.gf diff --git a/lib/next-resource/italian/RelativeIta.gf b/next-lib/src/italian/RelativeIta.gf similarity index 100% rename from lib/next-resource/italian/RelativeIta.gf rename to next-lib/src/italian/RelativeIta.gf diff --git a/lib/next-resource/italian/ResIta.gf b/next-lib/src/italian/ResIta.gf similarity index 100% rename from lib/next-resource/italian/ResIta.gf rename to next-lib/src/italian/ResIta.gf diff --git a/lib/next-resource/italian/SentenceIta.gf b/next-lib/src/italian/SentenceIta.gf similarity index 100% rename from lib/next-resource/italian/SentenceIta.gf rename to next-lib/src/italian/SentenceIta.gf diff --git a/lib/next-resource/italian/StructuralIta.gf b/next-lib/src/italian/StructuralIta.gf similarity index 100% rename from lib/next-resource/italian/StructuralIta.gf rename to next-lib/src/italian/StructuralIta.gf diff --git a/lib/next-resource/italian/VerbIta.gf b/next-lib/src/italian/VerbIta.gf similarity index 100% rename from lib/next-resource/italian/VerbIta.gf rename to next-lib/src/italian/VerbIta.gf diff --git a/lib/next-resource/latin/AdjectiveLat.gf b/next-lib/src/latin/AdjectiveLat.gf similarity index 100% rename from lib/next-resource/latin/AdjectiveLat.gf rename to next-lib/src/latin/AdjectiveLat.gf diff --git a/lib/next-resource/latin/AdverbLat.gf b/next-lib/src/latin/AdverbLat.gf similarity index 100% rename from lib/next-resource/latin/AdverbLat.gf rename to next-lib/src/latin/AdverbLat.gf diff --git a/lib/next-resource/latin/AllEngAbs.gf b/next-lib/src/latin/AllEngAbs.gf similarity index 100% rename from lib/next-resource/latin/AllEngAbs.gf rename to next-lib/src/latin/AllEngAbs.gf diff --git a/lib/next-resource/latin/AllLat.gf b/next-lib/src/latin/AllLat.gf similarity index 100% rename from lib/next-resource/latin/AllLat.gf rename to next-lib/src/latin/AllLat.gf diff --git a/lib/next-resource/latin/BackwardLat.gf b/next-lib/src/latin/BackwardLat.gf similarity index 100% rename from lib/next-resource/latin/BackwardLat.gf rename to next-lib/src/latin/BackwardLat.gf diff --git a/lib/next-resource/latin/CatLat.gf b/next-lib/src/latin/CatLat.gf similarity index 100% rename from lib/next-resource/latin/CatLat.gf rename to next-lib/src/latin/CatLat.gf diff --git a/lib/next-resource/latin/ConjunctionLat.gf b/next-lib/src/latin/ConjunctionLat.gf similarity index 100% rename from lib/next-resource/latin/ConjunctionLat.gf rename to next-lib/src/latin/ConjunctionLat.gf diff --git a/lib/next-resource/latin/ExtraEngAbs.gf b/next-lib/src/latin/ExtraEngAbs.gf similarity index 100% rename from lib/next-resource/latin/ExtraEngAbs.gf rename to next-lib/src/latin/ExtraEngAbs.gf diff --git a/lib/next-resource/latin/ExtraLat.gf b/next-lib/src/latin/ExtraLat.gf similarity index 100% rename from lib/next-resource/latin/ExtraLat.gf rename to next-lib/src/latin/ExtraLat.gf diff --git a/lib/next-resource/latin/GrammarLat.gf b/next-lib/src/latin/GrammarLat.gf similarity index 100% rename from lib/next-resource/latin/GrammarLat.gf rename to next-lib/src/latin/GrammarLat.gf diff --git a/lib/next-resource/latin/IdiomLat.gf b/next-lib/src/latin/IdiomLat.gf similarity index 100% rename from lib/next-resource/latin/IdiomLat.gf rename to next-lib/src/latin/IdiomLat.gf diff --git a/lib/next-resource/latin/IrregEngAbs.gf b/next-lib/src/latin/IrregEngAbs.gf similarity index 100% rename from lib/next-resource/latin/IrregEngAbs.gf rename to next-lib/src/latin/IrregEngAbs.gf diff --git a/lib/next-resource/latin/IrregLat.gf b/next-lib/src/latin/IrregLat.gf similarity index 100% rename from lib/next-resource/latin/IrregLat.gf rename to next-lib/src/latin/IrregLat.gf diff --git a/lib/next-resource/latin/LangLat.gf b/next-lib/src/latin/LangLat.gf similarity index 100% rename from lib/next-resource/latin/LangLat.gf rename to next-lib/src/latin/LangLat.gf diff --git a/lib/next-resource/latin/LexiconLat.gf b/next-lib/src/latin/LexiconLat.gf similarity index 100% rename from lib/next-resource/latin/LexiconLat.gf rename to next-lib/src/latin/LexiconLat.gf diff --git a/lib/next-resource/latin/MorphoLat.gf b/next-lib/src/latin/MorphoLat.gf similarity index 100% rename from lib/next-resource/latin/MorphoLat.gf rename to next-lib/src/latin/MorphoLat.gf diff --git a/lib/next-resource/latin/NounLat.gf b/next-lib/src/latin/NounLat.gf similarity index 100% rename from lib/next-resource/latin/NounLat.gf rename to next-lib/src/latin/NounLat.gf diff --git a/lib/next-resource/latin/NumeralLat.gf b/next-lib/src/latin/NumeralLat.gf similarity index 100% rename from lib/next-resource/latin/NumeralLat.gf rename to next-lib/src/latin/NumeralLat.gf diff --git a/lib/next-resource/latin/OverloadLat.gf b/next-lib/src/latin/OverloadLat.gf similarity index 100% rename from lib/next-resource/latin/OverloadLat.gf rename to next-lib/src/latin/OverloadLat.gf diff --git a/lib/next-resource/latin/ParadigmsLat.gf b/next-lib/src/latin/ParadigmsLat.gf similarity index 100% rename from lib/next-resource/latin/ParadigmsLat.gf rename to next-lib/src/latin/ParadigmsLat.gf diff --git a/lib/next-resource/latin/PhraseLat.gf b/next-lib/src/latin/PhraseLat.gf similarity index 100% rename from lib/next-resource/latin/PhraseLat.gf rename to next-lib/src/latin/PhraseLat.gf diff --git a/lib/next-resource/latin/QuestionLat.gf b/next-lib/src/latin/QuestionLat.gf similarity index 100% rename from lib/next-resource/latin/QuestionLat.gf rename to next-lib/src/latin/QuestionLat.gf diff --git a/lib/next-resource/latin/RelativeLat.gf b/next-lib/src/latin/RelativeLat.gf similarity index 100% rename from lib/next-resource/latin/RelativeLat.gf rename to next-lib/src/latin/RelativeLat.gf diff --git a/lib/next-resource/latin/ResLat.gf b/next-lib/src/latin/ResLat.gf similarity index 100% rename from lib/next-resource/latin/ResLat.gf rename to next-lib/src/latin/ResLat.gf diff --git a/lib/next-resource/latin/SentenceLat.gf b/next-lib/src/latin/SentenceLat.gf similarity index 100% rename from lib/next-resource/latin/SentenceLat.gf rename to next-lib/src/latin/SentenceLat.gf diff --git a/lib/next-resource/latin/StructuralLat.gf b/next-lib/src/latin/StructuralLat.gf similarity index 100% rename from lib/next-resource/latin/StructuralLat.gf rename to next-lib/src/latin/StructuralLat.gf diff --git a/lib/next-resource/latin/SymbolLat.gf b/next-lib/src/latin/SymbolLat.gf similarity index 100% rename from lib/next-resource/latin/SymbolLat.gf rename to next-lib/src/latin/SymbolLat.gf diff --git a/lib/next-resource/latin/VerbLat.gf b/next-lib/src/latin/VerbLat.gf similarity index 100% rename from lib/next-resource/latin/VerbLat.gf rename to next-lib/src/latin/VerbLat.gf diff --git a/lib/next-resource/latin/notes.txt b/next-lib/src/latin/notes.txt similarity index 100% rename from lib/next-resource/latin/notes.txt rename to next-lib/src/latin/notes.txt diff --git a/lib/next-resource/norwegian/AdjectiveNor.gf b/next-lib/src/norwegian/AdjectiveNor.gf similarity index 100% rename from lib/next-resource/norwegian/AdjectiveNor.gf rename to next-lib/src/norwegian/AdjectiveNor.gf diff --git a/lib/next-resource/norwegian/AdverbNor.gf b/next-lib/src/norwegian/AdverbNor.gf similarity index 100% rename from lib/next-resource/norwegian/AdverbNor.gf rename to next-lib/src/norwegian/AdverbNor.gf diff --git a/lib/next-resource/norwegian/AllNor.gf b/next-lib/src/norwegian/AllNor.gf similarity index 100% rename from lib/next-resource/norwegian/AllNor.gf rename to next-lib/src/norwegian/AllNor.gf diff --git a/lib/next-resource/norwegian/AllNorAbs.gf b/next-lib/src/norwegian/AllNorAbs.gf similarity index 100% rename from lib/next-resource/norwegian/AllNorAbs.gf rename to next-lib/src/norwegian/AllNorAbs.gf diff --git a/lib/next-resource/norwegian/CatNor.gf b/next-lib/src/norwegian/CatNor.gf similarity index 100% rename from lib/next-resource/norwegian/CatNor.gf rename to next-lib/src/norwegian/CatNor.gf diff --git a/lib/next-resource/norwegian/ConjunctionNor.gf b/next-lib/src/norwegian/ConjunctionNor.gf similarity index 100% rename from lib/next-resource/norwegian/ConjunctionNor.gf rename to next-lib/src/norwegian/ConjunctionNor.gf diff --git a/lib/next-resource/norwegian/DiffNor.gf b/next-lib/src/norwegian/DiffNor.gf similarity index 100% rename from lib/next-resource/norwegian/DiffNor.gf rename to next-lib/src/norwegian/DiffNor.gf diff --git a/lib/next-resource/norwegian/ExtraNor.gf b/next-lib/src/norwegian/ExtraNor.gf similarity index 100% rename from lib/next-resource/norwegian/ExtraNor.gf rename to next-lib/src/norwegian/ExtraNor.gf diff --git a/lib/next-resource/norwegian/ExtraNorAbs.gf b/next-lib/src/norwegian/ExtraNorAbs.gf similarity index 100% rename from lib/next-resource/norwegian/ExtraNorAbs.gf rename to next-lib/src/norwegian/ExtraNorAbs.gf diff --git a/lib/next-resource/norwegian/ExtraScandNor.gf b/next-lib/src/norwegian/ExtraScandNor.gf similarity index 100% rename from lib/next-resource/norwegian/ExtraScandNor.gf rename to next-lib/src/norwegian/ExtraScandNor.gf diff --git a/lib/next-resource/norwegian/GrammarNor.gf b/next-lib/src/norwegian/GrammarNor.gf similarity index 100% rename from lib/next-resource/norwegian/GrammarNor.gf rename to next-lib/src/norwegian/GrammarNor.gf diff --git a/lib/next-resource/norwegian/IdiomNor.gf b/next-lib/src/norwegian/IdiomNor.gf similarity index 100% rename from lib/next-resource/norwegian/IdiomNor.gf rename to next-lib/src/norwegian/IdiomNor.gf diff --git a/lib/next-resource/norwegian/IrregNor.gf b/next-lib/src/norwegian/IrregNor.gf similarity index 100% rename from lib/next-resource/norwegian/IrregNor.gf rename to next-lib/src/norwegian/IrregNor.gf diff --git a/lib/next-resource/norwegian/IrregNorAbs.gf b/next-lib/src/norwegian/IrregNorAbs.gf similarity index 100% rename from lib/next-resource/norwegian/IrregNorAbs.gf rename to next-lib/src/norwegian/IrregNorAbs.gf diff --git a/lib/next-resource/norwegian/LangNor.gf b/next-lib/src/norwegian/LangNor.gf similarity index 100% rename from lib/next-resource/norwegian/LangNor.gf rename to next-lib/src/norwegian/LangNor.gf diff --git a/lib/next-resource/norwegian/LexiconNor.gf b/next-lib/src/norwegian/LexiconNor.gf similarity index 100% rename from lib/next-resource/norwegian/LexiconNor.gf rename to next-lib/src/norwegian/LexiconNor.gf diff --git a/lib/next-resource/norwegian/MathNor.gf b/next-lib/src/norwegian/MathNor.gf similarity index 100% rename from lib/next-resource/norwegian/MathNor.gf rename to next-lib/src/norwegian/MathNor.gf diff --git a/lib/next-resource/norwegian/MorphoNor.gf b/next-lib/src/norwegian/MorphoNor.gf similarity index 100% rename from lib/next-resource/norwegian/MorphoNor.gf rename to next-lib/src/norwegian/MorphoNor.gf diff --git a/lib/next-resource/norwegian/NounNor.gf b/next-lib/src/norwegian/NounNor.gf similarity index 100% rename from lib/next-resource/norwegian/NounNor.gf rename to next-lib/src/norwegian/NounNor.gf diff --git a/lib/next-resource/norwegian/NumeralNor.gf b/next-lib/src/norwegian/NumeralNor.gf similarity index 100% rename from lib/next-resource/norwegian/NumeralNor.gf rename to next-lib/src/norwegian/NumeralNor.gf diff --git a/lib/next-resource/norwegian/ParadigmsNor.gf b/next-lib/src/norwegian/ParadigmsNor.gf similarity index 100% rename from lib/next-resource/norwegian/ParadigmsNor.gf rename to next-lib/src/norwegian/ParadigmsNor.gf diff --git a/lib/next-resource/norwegian/PhraseNor.gf b/next-lib/src/norwegian/PhraseNor.gf similarity index 100% rename from lib/next-resource/norwegian/PhraseNor.gf rename to next-lib/src/norwegian/PhraseNor.gf diff --git a/lib/next-resource/norwegian/QuestionNor.gf b/next-lib/src/norwegian/QuestionNor.gf similarity index 100% rename from lib/next-resource/norwegian/QuestionNor.gf rename to next-lib/src/norwegian/QuestionNor.gf diff --git a/lib/next-resource/norwegian/RelativeNor.gf b/next-lib/src/norwegian/RelativeNor.gf similarity index 100% rename from lib/next-resource/norwegian/RelativeNor.gf rename to next-lib/src/norwegian/RelativeNor.gf diff --git a/lib/next-resource/norwegian/ResNor.gf b/next-lib/src/norwegian/ResNor.gf similarity index 100% rename from lib/next-resource/norwegian/ResNor.gf rename to next-lib/src/norwegian/ResNor.gf diff --git a/lib/next-resource/norwegian/SentenceNor.gf b/next-lib/src/norwegian/SentenceNor.gf similarity index 100% rename from lib/next-resource/norwegian/SentenceNor.gf rename to next-lib/src/norwegian/SentenceNor.gf diff --git a/lib/next-resource/norwegian/StructuralNor.gf b/next-lib/src/norwegian/StructuralNor.gf similarity index 100% rename from lib/next-resource/norwegian/StructuralNor.gf rename to next-lib/src/norwegian/StructuralNor.gf diff --git a/lib/next-resource/norwegian/VerbNor.gf b/next-lib/src/norwegian/VerbNor.gf similarity index 100% rename from lib/next-resource/norwegian/VerbNor.gf rename to next-lib/src/norwegian/VerbNor.gf diff --git a/next-lib/src/prelude/Coordination.gf b/next-lib/src/prelude/Coordination.gf new file mode 100644 index 000000000..499b45306 --- /dev/null +++ b/next-lib/src/prelude/Coordination.gf @@ -0,0 +1,129 @@ +resource Coordination = open Prelude in { + +param + ListSize = TwoElem | ManyElem ; + +oper + ListX = {s1,s2 : Str} ; + + twoStr : (x,y : Str) -> ListX = \x,y -> + {s1 = x ; s2 = y} ; + consStr : Str -> ListX -> Str -> ListX = \comma,xs,x -> + {s1 = xs.s1 ++ comma ++ xs.s2 ; s2 = x } ; + + twoSS : (_,_ : SS) -> ListX = \x,y -> + twoStr x.s y.s ; + consSS : Str -> ListX -> SS -> ListX = \comma,xs,x -> + consStr comma xs x.s ; + + Conjunction : Type = SS ; + ConjunctionDistr : Type = {s1 : Str ; s2 : Str} ; + + conjunctX : Conjunction -> ListX -> Str = \or,xs -> + xs.s1 ++ or.s ++ xs.s2 ; + + conjunctDistrX : ConjunctionDistr -> ListX -> Str = \or,xs -> + or.s1 ++ xs.s1 ++ or.s2 ++ xs.s2 ; + + conjunctSS : Conjunction -> ListX -> SS = \or,xs -> + ss (xs.s1 ++ or.s ++ xs.s2) ; + + conjunctDistrSS : ConjunctionDistr -> ListX -> SS = \or,xs -> + ss (or.s1 ++ xs.s1 ++ or.s2 ++ xs.s2) ; + + -- all this lifted to tables + + ListTable : Type -> Type = \P -> {s1,s2 : P => Str} ; + + twoTable : (P : Type) -> (_,_ : {s : P => Str}) -> ListTable P = \_,x,y -> + {s1 = x.s ; s2 = y.s} ; + + consTable : (P : Type) -> Str -> ListTable P -> {s : P => Str} -> ListTable P = + \P,c,xs,x -> + {s1 = table P {o => xs.s1 ! o ++ c ++ xs.s2 ! o} ; s2 = x.s} ; + + conjunctTable : (P : Type) -> Conjunction -> ListTable P -> {s : P => Str} = + \P,or,xs -> + {s = table P {p => xs.s1 ! p ++ or.s ++ xs.s2 ! p}} ; + + conjunctDistrTable : + (P : Type) -> ConjunctionDistr -> ListTable P -> {s : P => Str} = \P,or,xs -> + {s = table P {p => or.s1++ xs.s1 ! p ++ or.s2 ++ xs.s2 ! p}} ; + + -- ... and to two- and three-argument tables: how clumsy! --- + + ListTable2 : Type -> Type -> Type = \P,Q -> + {s1,s2 : P => Q => Str} ; + + twoTable2 : (P,Q : Type) -> (_,_ : {s : P => Q => Str}) -> ListTable2 P Q = + \_,_,x,y -> + {s1 = x.s ; s2 = y.s} ; + + consTable2 : + (P,Q : Type) -> Str -> ListTable2 P Q -> {s : P => Q => Str} -> ListTable2 P Q = + \P,Q,c,xs,x -> + {s1 = table P {p => table Q {q => xs.s1 ! p ! q ++ c ++ xs.s2 ! p! q}} ; + s2 = x.s + } ; + + conjunctTable2 : + (P,Q : Type) -> Conjunction -> ListTable2 P Q -> {s : P => Q => Str} = + \P,Q,or,xs -> + {s = table P {p => table Q {q => xs.s1 ! p ! q ++ or.s ++ xs.s2 ! p ! q}}} ; + + conjunctDistrTable2 : + (P,Q : Type) -> ConjunctionDistr -> ListTable2 P Q -> {s : P => Q => Str} = + \P,Q,or,xs -> + {s = + table P {p => table Q {q => or.s1++ xs.s1 ! p ! q ++ or.s2 ++ xs.s2 ! p ! q}}} ; + + ListTable3 : Type -> Type -> Type -> Type = \P,Q,R -> + {s1,s2 : P => Q => R => Str} ; + + twoTable3 : (P,Q,R : Type) -> (_,_ : {s : P => Q => R => Str}) -> + ListTable3 P Q R = + \_,_,_,x,y -> + {s1 = x.s ; s2 = y.s} ; + + consTable3 : + (P,Q,R : Type) -> Str -> ListTable3 P Q R -> {s : P => Q => R => Str} -> + ListTable3 P Q R = + \P,Q,R,c,xs,x -> + {s1 = \\p,q,r => xs.s1 ! p ! q ! r ++ c ++ xs.s2 ! p ! q ! r ; + s2 = x.s + } ; + + conjunctTable3 : + (P,Q,R : Type) -> Conjunction -> ListTable3 P Q R -> {s : P => Q => R => Str} = + \P,Q,R,or,xs -> + {s = \\p,q,r => xs.s1 ! p ! q ! r ++ or.s ++ xs.s2 ! p ! q ! r} ; + + conjunctDistrTable3 : + (P,Q,R : Type) -> ConjunctionDistr -> ListTable3 P Q R -> + {s : P => Q => R => Str} = + \P,Q,R,or,xs -> + {s = \\p,q,r => or.s1++ xs.s1 ! p ! q ! r ++ or.s2 ++ xs.s2 ! p ! q ! r} ; + + comma = "," ; + +-- you can also do this to right-associative lists: + + consrStr : Str -> Str -> ListX -> ListX = \comma,x,xs -> + {s1 = x ++ comma ++ xs.s1 ; s2 = xs.s2 } ; + + consrSS : Str -> SS -> ListX -> ListX = \comma,x,xs -> + consrStr comma x.s xs ; + + consrTable : (P : Type) -> Str -> {s : P => Str} -> ListTable P -> ListTable P = + \P,c,x,xs -> + {s1 = table P {o => x.s ! o ++ c ++ xs.s1 ! o} ; s2 = xs.s2} ; + + consrTable2 : (P,Q : Type) -> Str -> {s : P => Q => Str} -> + ListTable2 P Q -> ListTable2 P Q = + \P,Q,c,x,xs -> + {s1 = table P {p => table Q {q => x.s ! p ! q ++ c ++ xs.s1 ! p ! q}} ; + s2 = xs.s2 + } ; + + +} ; diff --git a/next-lib/src/prelude/Formal.gf b/next-lib/src/prelude/Formal.gf new file mode 100644 index 000000000..2aa33d9ef --- /dev/null +++ b/next-lib/src/prelude/Formal.gf @@ -0,0 +1,54 @@ +resource Formal = open Prelude in { + +-- to replace the old library Precedence + + oper + Prec : PType ; + TermPrec : Type = {s : Str ; p : Prec} ; + + mkPrec : Prec -> Str -> TermPrec = \p,s -> + {s = s ; p = p} ; + + top : TermPrec -> Str = usePrec 0 ; + + constant : Str -> TermPrec = mkPrec highest ; + + infixl : Prec -> Str -> (_,_ : TermPrec) -> TermPrec = \p,f,x,y -> + mkPrec p (usePrec p x ++ f ++ usePrec (nextPrec p) y) ; + infixr : Prec -> Str -> (_,_ : TermPrec) -> TermPrec = \p,f,x,y -> + mkPrec p (usePrec (nextPrec p) x ++ f ++ usePrec p y) ; + infixn : Prec -> Str -> (_,_ : TermPrec) -> TermPrec = \p,f,x,y -> + mkPrec p (usePrec (nextPrec p) x ++ f ++ usePrec (nextPrec p) y) ; + +-- auxiliaries, should not be needed so much + + usePrec : Prec -> TermPrec -> Str = \p,x -> + case lessPrec x.p p of { + True => parenth x.s ; + False => parenthOpt x.s + } ; + + parenth : Str -> Str = \s -> "(" ++ s ++ ")" ; + parenthOpt : Str -> Str = \s -> variants {s ; "(" ++ s ++ ")"} ; + +--. +-- low-level things: don't use + + Prec : PType = Predef.Ints 4 ; + + highest = 4 ; + + lessPrec : Prec -> Prec -> Bool = \p,q -> + case < : Prec * Prec> of { + <3,4> | <2,3> | <2,4> => True ; + <1,1> | <1,0> | <0,0> => False ; + <1,_> | <0,_> => True ; + _ => False + } ; + + nextPrec : Prec -> Prec = \p -> case

of { + 4 => 4 ; + n => Predef.plus n 1 + } ; + +} diff --git a/next-lib/src/prelude/HTML.gf b/next-lib/src/prelude/HTML.gf new file mode 100644 index 000000000..b469b582c --- /dev/null +++ b/next-lib/src/prelude/HTML.gf @@ -0,0 +1,8 @@ +resource HTML = open Prelude in { + oper + tag : Str -> Str = \t -> "<" + t + ">" ; + endtag : Str -> Str = \t -> tag ("/" + t) ; + intag : Str -> Str -> Str = \t,s -> tag t ++ s ++ endtag t ; + intagAttr : Str -> Str -> Str -> Str = + \t,a,s -> ("<" + t) ++ (a + ">") ++ s ++ endtag t ; +} diff --git a/next-lib/src/prelude/Latex.gf b/next-lib/src/prelude/Latex.gf new file mode 100644 index 000000000..2fd2f9ec8 --- /dev/null +++ b/next-lib/src/prelude/Latex.gf @@ -0,0 +1,12 @@ +resource Latex = open Prelude in { + oper + command : Str -> Str = \c -> "\\" + c ; + fun1 : Str -> Str -> Str = \f,x -> "\\" + f + "{" ++ x ++ "}" ; + fun2 : Str -> Str -> Str -> Str = + \f,x,y -> "\\" + f + "{" ++ x ++ "}{" ++ y ++ "}" ; + begin : Str -> Str = \e -> "\\begin{" + e + "}" ; + end : Str -> Str = \e -> "\\end{" + e + "}" ; + inEnv : Str -> Str -> Str = \e,s -> begin e ++ s ++ end e ; +} + + diff --git a/next-lib/src/prelude/Precedence.gf b/next-lib/src/prelude/Precedence.gf new file mode 100644 index 000000000..1e0b1a77c --- /dev/null +++ b/next-lib/src/prelude/Precedence.gf @@ -0,0 +1,117 @@ +-- operations for precedence-dependent strings. +-- five levels: +-- p4 (constants), p3 (applications), p2 (products), p1 (sums), p0 (arrows) + +resource Precedence = open Prelude in { + +param +Prec = p4 | p3 | p2 | p1 | p0 ; + +lintype +PrecTerm = Prec => Str ; + +oper +pss : PrecTerm -> {s : PrecTerm} = \s -> {s = s} ; + + +-- change this if you want some other type of parentheses +mkParenth : Str -> Str = \str -> "(" ++ str ++ ")" ; + +-- define ordering of precedences +nextPrec : Prec => Prec = + table {p0 => p1 ; p1 => p2 ; p2 => p3 ; _ => p4} ; +prevPrec : Prec => Prec = + table {p4 => p3 ; p3 => p2 ; p2 => p1 ; _ => p0} ; + +mkPrec : Str -> Prec => Prec => Str = \str -> + table { + p4 => table { -- use the term of precedence p4... + _ => str} ; -- ...always without parentheses + p3 => table { -- use the term of precedence p3... + p4 => mkParenth str ; -- ...in parentheses if p4 is required... + _ => str} ; -- ...otherwise without parentheses + p2 => table { + p4 => mkParenth str ; + p3 => mkParenth str ; + _ => str} ; + p1 => table { + p1 => str ; + p0 => str ; + _ => mkParenth str} ; + p0 => table { + p0 => str ; + _ => mkParenth str} + } ; + +-- make a string into a constant, of precedence p4 +mkConst : Str -> PrecTerm = + \f -> + mkPrec f ! p4 ; + +-- make a string into a 1/2/3 -place prefix operator, of precedence p3 +mkFun1 : Str -> PrecTerm -> PrecTerm = + \f -> \x -> + table {k => mkPrec (f ++ x ! p4) ! p3 ! k} ; +mkFun2 : Str -> PrecTerm -> PrecTerm -> PrecTerm = + \f -> \x -> \y -> + table {k => mkPrec (f ++ x ! p4 ++ y ! p4) ! p3 ! k} ; +mkFun3 : Str -> PrecTerm -> PrecTerm -> PrecTerm -> PrecTerm = + \f -> \x -> \y -> \z -> + table {k => mkPrec (f ++ x ! p4 ++ y ! p4 ++ z ! p4) ! p3 ! k} ; + +-- make a string into a non/left/right -associative infix operator, of precedence p +mkInfix : Str -> Prec -> PrecTerm -> PrecTerm -> PrecTerm = + \f -> \p -> \x -> \y -> + table {k => mkPrec (x ! (nextPrec ! p) ++ f ++ y ! (nextPrec ! p)) ! p ! k} ; +mkInfixL : Str -> Prec -> PrecTerm -> PrecTerm -> PrecTerm = + \f -> \p -> \x -> \y -> + table {k => mkPrec (x ! p ++ f ++ y ! (nextPrec ! p)) ! p ! k} ; +mkInfixR : Str -> Prec -> PrecTerm -> PrecTerm -> PrecTerm = + \f -> \p -> \x -> \y -> + table {k => mkPrec (x ! (nextPrec ! p) ++ f ++ y ! p) ! p ! k} ; + +----------------------------------------------------------- + +-- alternative: +-- precedence as inherent feature + +lintype TermWithPrec = {s : Str ; p : Prec} ; + +oper +mkpPrec : Str -> Prec -> TermWithPrec = + \f -> \p -> + {s = f ; p = p} ; + +usePrec : TermWithPrec -> Prec -> Str = + \x -> \p -> + mkPrec x.s ! x.p ! p ; + +-- make a string into a constant, of precedence p4 +mkpConst : Str -> TermWithPrec = + \f -> + mkpPrec f p4 ; + +-- make a string into a 1/2/3 -place prefix operator, of precedence p3 +mkpFun1 : Str -> TermWithPrec -> TermWithPrec = + \f -> \x -> + mkpPrec (f ++ usePrec x p4) p3 ; + +mkpFun2 : Str -> TermWithPrec -> TermWithPrec -> TermWithPrec = + \f -> \x -> \y -> + mkpPrec (f ++ usePrec x p4 ++ usePrec y p4) p3 ; + +mkpFun3 : Str -> TermWithPrec -> TermWithPrec -> TermWithPrec -> TermWithPrec = + \f -> \x -> \y -> \z -> + mkpPrec (f ++ usePrec x p4 ++ usePrec y p4 ++ usePrec z p4) p3 ; + +-- make a string a into non/left/right -associative infix operator, of precedence p +mkpInfix : Str -> Prec -> TermWithPrec -> TermWithPrec -> TermWithPrec = + \f -> \p -> \x -> \y -> + mkpPrec (usePrec x (nextPrec ! p) ++ f ++ usePrec y (nextPrec ! p)) p ; +mkpInfixL : Str -> Prec -> TermWithPrec -> TermWithPrec -> TermWithPrec = + \f -> \p -> \x -> \y -> + mkpPrec (usePrec x p ++ f ++ usePrec y (nextPrec ! p)) p ; +mkpInfixR : Str -> Prec -> TermWithPrec -> TermWithPrec -> TermWithPrec = + \f -> \p -> \x -> \y -> + mkpPrec (usePrec x (nextPrec ! p) ++ f ++ usePrec y p) p ; +} ; \ No newline at end of file diff --git a/next-lib/src/prelude/Predef.gf b/next-lib/src/prelude/Predef.gf new file mode 100644 index 000000000..d8141ea8c --- /dev/null +++ b/next-lib/src/prelude/Predef.gf @@ -0,0 +1,37 @@ +--1 Predefined functions for concrete syntax + +-- The definitions of these constants are hard-coded in GF, and defined +-- in [AppPredefined.hs ../src/GF/Grammar/AppPredefined.hs]. Applying +-- them to run-time variables leads to compiler errors that are often +-- only detected at the code generation time. + +resource Predef = { + +-- This type of booleans is for internal use only. + + param PBool = PTrue | PFalse ; + + oper Error : Type = variants {} ; -- the empty type + oper Int : Type = variants {} ; -- the type of integers + oper Ints : Int -> Type = variants {} ; -- the type of integers from 0 to n + + oper error : Str -> Error = variants {} ; -- forms error message + oper length : Tok -> Int = variants {} ; -- length of string + oper drop : Int -> Tok -> Tok = variants {} ; -- drop prefix of length + oper take : Int -> Tok -> Tok = variants {} ; -- take prefix of length + oper tk : Int -> Tok -> Tok = variants {} ; -- drop suffix of length + oper dp : Int -> Tok -> Tok = variants {} ; -- take suffix of length + oper eqInt : Int -> Int -> PBool = variants {} ; -- test if equal integers + oper lessInt: Int -> Int -> PBool = variants {} ; -- test order of integers + oper plus : Int -> Int -> Int = variants {} ; -- add integers + oper eqStr : Tok -> Tok -> PBool = variants {} ; -- test if equal strings + oper occur : Tok -> Tok -> PBool = variants {} ; -- test if occurs as substring + oper occurs : Tok -> Tok -> PBool = variants {} ; -- test if any char occurs + oper show : (P : Type) -> P -> Tok = variants {} ; -- convert param to string + oper read : (P : Type) -> Tok -> P = variants {} ; -- convert string to param + oper toStr : (L : Type) -> L -> Str = variants {} ; -- find the "first" string + oper mapStr : (L : Type) -> (Str -> Str) -> L -> L = variants {} ; + -- map all strings in a data structure; experimental --- + +} ; + diff --git a/next-lib/src/prelude/PredefAbs.gf b/next-lib/src/prelude/PredefAbs.gf new file mode 100644 index 000000000..a99961d00 --- /dev/null +++ b/next-lib/src/prelude/PredefAbs.gf @@ -0,0 +1,4 @@ +abstract PredefAbs = { + cat Int ; String ; Float ; +} ; + diff --git a/next-lib/src/prelude/PredefCnc.gf b/next-lib/src/prelude/PredefCnc.gf new file mode 100644 index 000000000..f12b9b1f0 --- /dev/null +++ b/next-lib/src/prelude/PredefCnc.gf @@ -0,0 +1,4 @@ +concrete PredefCnc of PredefAbs = { + lincat + Int, Float, String = {s : Str} ; +} ; diff --git a/next-lib/src/prelude/Prelude.gf b/next-lib/src/prelude/Prelude.gf new file mode 100644 index 000000000..56545d051 --- /dev/null +++ b/next-lib/src/prelude/Prelude.gf @@ -0,0 +1,142 @@ +--1 The GF Prelude + +-- This file defines some prelude facilities usable in all grammars. + +resource Prelude = open (Predef=Predef) in { + +oper + +--2 Strings, records, and tables + + SS : Type = {s : Str} ; + ss : Str -> SS = \s -> {s = s} ; + ss2 : (_,_ : Str) -> SS = \x,y -> ss (x ++ y) ; + ss3 : (_,_ ,_: Str) -> SS = \x,y,z -> ss (x ++ y ++ z) ; + + cc2 : (_,_ : SS) -> SS = \x,y -> ss (x.s ++ y.s) ; + cc3 : (_,_,_ : SS) -> SS = \x,y,z -> ss (x.s ++ y.s ++ z.s) ; + + SS1 : Type -> Type = \P -> {s : P => Str} ; + ss1 : (A : Type) -> Str -> SS1 A = \A,s -> {s = table {_ => s}} ; + + SP1 : Type -> Type = \P -> {s : Str ; p : P} ; + sp1 : (A : Type) -> Str -> A -> SP1 A = \_,s,a -> {s = s ; p = a} ; + + constTable : (A,B : Type) -> B -> A => B = \_,_,b -> \\_ => b ; + constStr : (A : Type) -> Str -> A => Str = \A -> constTable A Str ; + +-- Discontinuous constituents. + + SD2 : Type = {s1,s2 : Str} ; + sd2 : (_,_ : Str) -> SD2 = \x,y -> {s1 = x ; s2 = y} ; + + +--2 Optional elements + +-- Missing form. + + nonExist : Str = variants {} ; + +-- Optional string with preference on the string vs. empty. + + optStr : Str -> Str = \s -> variants {s ; []} ; + strOpt : Str -> Str = \s -> variants {[] ; s} ; + +-- Free order between two strings. + + bothWays : Str -> Str -> Str = \x,y -> variants {x ++ y ; y ++ x} ; + +-- Parametric order between two strings. + + preOrPost : Bool -> Str -> Str -> Str = \pr,x,y -> + if_then_Str pr (x ++ y) (y ++ x) ; + +--2 Infixes. prefixes, and postfixes + +-- Fixes with precedences are defined in [Precedence Precedence.html]. + + infixSS : Str -> SS -> SS -> SS = \f,x,y -> ss (x.s ++ f ++ y.s) ; + prefixSS : Str -> SS -> SS = \f,x -> ss (f ++ x.s) ; + postfixSS : Str -> SS -> SS = \f,x -> ss (x.s ++ f) ; + embedSS : Str -> Str -> SS -> SS = \f,g,x -> ss (f ++ x.s ++ g) ; + + +--2 Booleans + + param Bool = True | False ; + +oper + if_then_else : (A : Type) -> Bool -> A -> A -> A = \_,c,d,e -> + case c of { + True => d ; ---- should not need to qualify + False => e + } ; + + andB : (_,_ : Bool) -> Bool = \a,b -> if_then_else Bool a b False ; + orB : (_,_ : Bool) -> Bool = \a,b -> if_then_else Bool a True b ; + notB : Bool -> Bool = \a -> if_then_else Bool a False True ; + + if_then_Str : Bool -> Str -> Str -> Str = if_then_else Str ; + + onlyIf : Bool -> Str -> Str = \b,s -> case b of { + True => s ; + _ => nonExist + } ; + +-- Interface to internal booleans + + pbool2bool : Predef.PBool -> Bool = \b -> case b of { + Predef.PFalse => False ; Predef.PTrue => True + } ; + + init : Tok -> Tok = Predef.tk 1 ; + last : Tok -> Tok = Predef.dp 1 ; + +--2 High-level acces to Predef operations + + isNil : Tok -> Bool = \b -> pbool2bool (Predef.eqStr [] b) ; + + ifTok : (A : Type) -> Tok -> Tok -> A -> A -> A = \A,t,u,a,b -> + case Predef.eqStr t u of {Predef.PTrue => a ; Predef.PFalse => b} ; + +--2 Lexer-related operations + +-- Bind together two tokens in some lexers, either obligatorily or optionally + + oper + glue : Str -> Str -> Str = \x,y -> x ++ BIND ++ y ; + glueOpt : Str -> Str -> Str = \x,y -> variants {glue x y ; x ++ y} ; + noglueOpt : Str -> Str -> Str = \x,y -> variants {x ++ y ; glue x y} ; + +-- Force capitalization of next word in some unlexers + + capitalize : Str -> Str = \s -> CAPIT ++ s ; + +-- These should be hidden, and never changed since they are hardcoded in (un)lexers + + BIND : Str = "&+" ; + PARA : Str = "&-" ; + CAPIT : Str = "&|" ; + +--2 Miscellaneous + +-- Identity function + + id : (A : Type) -> A -> A = \_,a -> a ; + +-- Parentheses + + paren : Str -> Str = \s -> "(" ++ s ++ ")" ; + parenss : SS -> SS = \s -> ss (paren s.s) ; + +-- Zero, one, two, or more (elements in a list etc) + +param + ENumber = E0 | E1 | E2 | Emore ; + +oper + eNext : ENumber -> ENumber = \e -> case e of { + E0 => E1 ; E1 => E2 ; _ => Emore} ; + + +} diff --git a/lib/next-resource/romance/AdjectiveRomance.gf b/next-lib/src/romance/AdjectiveRomance.gf similarity index 100% rename from lib/next-resource/romance/AdjectiveRomance.gf rename to next-lib/src/romance/AdjectiveRomance.gf diff --git a/lib/next-resource/romance/AdverbRomance.gf b/next-lib/src/romance/AdverbRomance.gf similarity index 100% rename from lib/next-resource/romance/AdverbRomance.gf rename to next-lib/src/romance/AdverbRomance.gf diff --git a/lib/next-resource/romance/CatRomance.gf b/next-lib/src/romance/CatRomance.gf similarity index 100% rename from lib/next-resource/romance/CatRomance.gf rename to next-lib/src/romance/CatRomance.gf diff --git a/lib/next-resource/romance/CommonRomance.gf b/next-lib/src/romance/CommonRomance.gf similarity index 100% rename from lib/next-resource/romance/CommonRomance.gf rename to next-lib/src/romance/CommonRomance.gf diff --git a/lib/next-resource/romance/ConjunctionRomance.gf b/next-lib/src/romance/ConjunctionRomance.gf similarity index 100% rename from lib/next-resource/romance/ConjunctionRomance.gf rename to next-lib/src/romance/ConjunctionRomance.gf diff --git a/lib/next-resource/romance/DiffRomance.gf b/next-lib/src/romance/DiffRomance.gf similarity index 100% rename from lib/next-resource/romance/DiffRomance.gf rename to next-lib/src/romance/DiffRomance.gf diff --git a/lib/next-resource/romance/ExtRomance.gf b/next-lib/src/romance/ExtRomance.gf similarity index 100% rename from lib/next-resource/romance/ExtRomance.gf rename to next-lib/src/romance/ExtRomance.gf diff --git a/lib/next-resource/romance/ExtraRomance.gf b/next-lib/src/romance/ExtraRomance.gf similarity index 100% rename from lib/next-resource/romance/ExtraRomance.gf rename to next-lib/src/romance/ExtraRomance.gf diff --git a/lib/next-resource/romance/ExtraRomanceAbs.gf b/next-lib/src/romance/ExtraRomanceAbs.gf similarity index 100% rename from lib/next-resource/romance/ExtraRomanceAbs.gf rename to next-lib/src/romance/ExtraRomanceAbs.gf diff --git a/lib/next-resource/romance/NounRomance.gf b/next-lib/src/romance/NounRomance.gf similarity index 100% rename from lib/next-resource/romance/NounRomance.gf rename to next-lib/src/romance/NounRomance.gf diff --git a/lib/next-resource/romance/PhraseRomance.gf b/next-lib/src/romance/PhraseRomance.gf similarity index 100% rename from lib/next-resource/romance/PhraseRomance.gf rename to next-lib/src/romance/PhraseRomance.gf diff --git a/lib/next-resource/romance/QuestionRomance.gf b/next-lib/src/romance/QuestionRomance.gf similarity index 100% rename from lib/next-resource/romance/QuestionRomance.gf rename to next-lib/src/romance/QuestionRomance.gf diff --git a/lib/next-resource/romance/RelativeRomance.gf b/next-lib/src/romance/RelativeRomance.gf similarity index 100% rename from lib/next-resource/romance/RelativeRomance.gf rename to next-lib/src/romance/RelativeRomance.gf diff --git a/lib/next-resource/romance/ResRomance.gf b/next-lib/src/romance/ResRomance.gf similarity index 100% rename from lib/next-resource/romance/ResRomance.gf rename to next-lib/src/romance/ResRomance.gf diff --git a/lib/next-resource/romance/SentenceRomance.gf b/next-lib/src/romance/SentenceRomance.gf similarity index 100% rename from lib/next-resource/romance/SentenceRomance.gf rename to next-lib/src/romance/SentenceRomance.gf diff --git a/lib/next-resource/romance/VerbRomance.gf b/next-lib/src/romance/VerbRomance.gf similarity index 100% rename from lib/next-resource/romance/VerbRomance.gf rename to next-lib/src/romance/VerbRomance.gf diff --git a/lib/next-resource/scandinavian/AdjectiveScand.gf b/next-lib/src/scandinavian/AdjectiveScand.gf similarity index 100% rename from lib/next-resource/scandinavian/AdjectiveScand.gf rename to next-lib/src/scandinavian/AdjectiveScand.gf diff --git a/lib/next-resource/scandinavian/AdverbScand.gf b/next-lib/src/scandinavian/AdverbScand.gf similarity index 100% rename from lib/next-resource/scandinavian/AdverbScand.gf rename to next-lib/src/scandinavian/AdverbScand.gf diff --git a/lib/next-resource/scandinavian/CatScand.gf b/next-lib/src/scandinavian/CatScand.gf similarity index 100% rename from lib/next-resource/scandinavian/CatScand.gf rename to next-lib/src/scandinavian/CatScand.gf diff --git a/lib/next-resource/scandinavian/CommonScand.gf b/next-lib/src/scandinavian/CommonScand.gf similarity index 100% rename from lib/next-resource/scandinavian/CommonScand.gf rename to next-lib/src/scandinavian/CommonScand.gf diff --git a/lib/next-resource/scandinavian/ConjunctionScand.gf b/next-lib/src/scandinavian/ConjunctionScand.gf similarity index 100% rename from lib/next-resource/scandinavian/ConjunctionScand.gf rename to next-lib/src/scandinavian/ConjunctionScand.gf diff --git a/lib/next-resource/scandinavian/DiffScand.gf b/next-lib/src/scandinavian/DiffScand.gf similarity index 100% rename from lib/next-resource/scandinavian/DiffScand.gf rename to next-lib/src/scandinavian/DiffScand.gf diff --git a/lib/next-resource/scandinavian/ExtEngAbs.gf b/next-lib/src/scandinavian/ExtEngAbs.gf similarity index 100% rename from lib/next-resource/scandinavian/ExtEngAbs.gf rename to next-lib/src/scandinavian/ExtEngAbs.gf diff --git a/lib/next-resource/scandinavian/ExtraScand.gf b/next-lib/src/scandinavian/ExtraScand.gf similarity index 100% rename from lib/next-resource/scandinavian/ExtraScand.gf rename to next-lib/src/scandinavian/ExtraScand.gf diff --git a/lib/next-resource/scandinavian/ExtraScandAbs.gf b/next-lib/src/scandinavian/ExtraScandAbs.gf similarity index 100% rename from lib/next-resource/scandinavian/ExtraScandAbs.gf rename to next-lib/src/scandinavian/ExtraScandAbs.gf diff --git a/lib/next-resource/scandinavian/NounScand.gf b/next-lib/src/scandinavian/NounScand.gf similarity index 100% rename from lib/next-resource/scandinavian/NounScand.gf rename to next-lib/src/scandinavian/NounScand.gf diff --git a/lib/next-resource/scandinavian/PhraseScand.gf b/next-lib/src/scandinavian/PhraseScand.gf similarity index 100% rename from lib/next-resource/scandinavian/PhraseScand.gf rename to next-lib/src/scandinavian/PhraseScand.gf diff --git a/lib/next-resource/scandinavian/QuestionScand.gf b/next-lib/src/scandinavian/QuestionScand.gf similarity index 100% rename from lib/next-resource/scandinavian/QuestionScand.gf rename to next-lib/src/scandinavian/QuestionScand.gf diff --git a/lib/next-resource/scandinavian/RelativeScand.gf b/next-lib/src/scandinavian/RelativeScand.gf similarity index 100% rename from lib/next-resource/scandinavian/RelativeScand.gf rename to next-lib/src/scandinavian/RelativeScand.gf diff --git a/lib/next-resource/scandinavian/ResScand.gf b/next-lib/src/scandinavian/ResScand.gf similarity index 100% rename from lib/next-resource/scandinavian/ResScand.gf rename to next-lib/src/scandinavian/ResScand.gf diff --git a/lib/next-resource/scandinavian/SentenceScand.gf b/next-lib/src/scandinavian/SentenceScand.gf similarity index 100% rename from lib/next-resource/scandinavian/SentenceScand.gf rename to next-lib/src/scandinavian/SentenceScand.gf diff --git a/lib/next-resource/scandinavian/VerbScand.gf b/next-lib/src/scandinavian/VerbScand.gf similarity index 100% rename from lib/next-resource/scandinavian/VerbScand.gf rename to next-lib/src/scandinavian/VerbScand.gf diff --git a/lib/next-resource/spanish/AdjectiveSpa.gf b/next-lib/src/spanish/AdjectiveSpa.gf similarity index 100% rename from lib/next-resource/spanish/AdjectiveSpa.gf rename to next-lib/src/spanish/AdjectiveSpa.gf diff --git a/lib/next-resource/spanish/AdverbSpa.gf b/next-lib/src/spanish/AdverbSpa.gf similarity index 100% rename from lib/next-resource/spanish/AdverbSpa.gf rename to next-lib/src/spanish/AdverbSpa.gf diff --git a/lib/next-resource/spanish/AllSpa.gf b/next-lib/src/spanish/AllSpa.gf similarity index 100% rename from lib/next-resource/spanish/AllSpa.gf rename to next-lib/src/spanish/AllSpa.gf diff --git a/lib/next-resource/spanish/AllSpaAbs.gf b/next-lib/src/spanish/AllSpaAbs.gf similarity index 100% rename from lib/next-resource/spanish/AllSpaAbs.gf rename to next-lib/src/spanish/AllSpaAbs.gf diff --git a/lib/next-resource/spanish/BeschSpa.gf b/next-lib/src/spanish/BeschSpa.gf similarity index 100% rename from lib/next-resource/spanish/BeschSpa.gf rename to next-lib/src/spanish/BeschSpa.gf diff --git a/lib/next-resource/spanish/CatSpa.gf b/next-lib/src/spanish/CatSpa.gf similarity index 100% rename from lib/next-resource/spanish/CatSpa.gf rename to next-lib/src/spanish/CatSpa.gf diff --git a/lib/next-resource/spanish/ConjunctionSpa.gf b/next-lib/src/spanish/ConjunctionSpa.gf similarity index 100% rename from lib/next-resource/spanish/ConjunctionSpa.gf rename to next-lib/src/spanish/ConjunctionSpa.gf diff --git a/lib/next-resource/spanish/DiffSpa.gf b/next-lib/src/spanish/DiffSpa.gf similarity index 100% rename from lib/next-resource/spanish/DiffSpa.gf rename to next-lib/src/spanish/DiffSpa.gf diff --git a/lib/next-resource/spanish/ExtraRomanceSpa.gf b/next-lib/src/spanish/ExtraRomanceSpa.gf similarity index 100% rename from lib/next-resource/spanish/ExtraRomanceSpa.gf rename to next-lib/src/spanish/ExtraRomanceSpa.gf diff --git a/lib/next-resource/spanish/ExtraSpa.gf b/next-lib/src/spanish/ExtraSpa.gf similarity index 100% rename from lib/next-resource/spanish/ExtraSpa.gf rename to next-lib/src/spanish/ExtraSpa.gf diff --git a/lib/next-resource/spanish/ExtraSpaAbs.gf b/next-lib/src/spanish/ExtraSpaAbs.gf similarity index 100% rename from lib/next-resource/spanish/ExtraSpaAbs.gf rename to next-lib/src/spanish/ExtraSpaAbs.gf diff --git a/lib/next-resource/spanish/GrammarSpa.gf b/next-lib/src/spanish/GrammarSpa.gf similarity index 100% rename from lib/next-resource/spanish/GrammarSpa.gf rename to next-lib/src/spanish/GrammarSpa.gf diff --git a/lib/next-resource/spanish/IdiomSpa.gf b/next-lib/src/spanish/IdiomSpa.gf similarity index 100% rename from lib/next-resource/spanish/IdiomSpa.gf rename to next-lib/src/spanish/IdiomSpa.gf diff --git a/lib/next-resource/spanish/IrregSpa.gf b/next-lib/src/spanish/IrregSpa.gf similarity index 100% rename from lib/next-resource/spanish/IrregSpa.gf rename to next-lib/src/spanish/IrregSpa.gf diff --git a/lib/next-resource/spanish/IrregSpaAbs.gf b/next-lib/src/spanish/IrregSpaAbs.gf similarity index 100% rename from lib/next-resource/spanish/IrregSpaAbs.gf rename to next-lib/src/spanish/IrregSpaAbs.gf diff --git a/lib/next-resource/spanish/LangSpa.gf b/next-lib/src/spanish/LangSpa.gf similarity index 100% rename from lib/next-resource/spanish/LangSpa.gf rename to next-lib/src/spanish/LangSpa.gf diff --git a/lib/next-resource/spanish/LexiconSpa.gf b/next-lib/src/spanish/LexiconSpa.gf similarity index 100% rename from lib/next-resource/spanish/LexiconSpa.gf rename to next-lib/src/spanish/LexiconSpa.gf diff --git a/lib/next-resource/spanish/MorphoSpa.gf b/next-lib/src/spanish/MorphoSpa.gf similarity index 100% rename from lib/next-resource/spanish/MorphoSpa.gf rename to next-lib/src/spanish/MorphoSpa.gf diff --git a/lib/next-resource/spanish/NounSpa.gf b/next-lib/src/spanish/NounSpa.gf similarity index 100% rename from lib/next-resource/spanish/NounSpa.gf rename to next-lib/src/spanish/NounSpa.gf diff --git a/lib/next-resource/spanish/NumeralSpa.gf b/next-lib/src/spanish/NumeralSpa.gf similarity index 100% rename from lib/next-resource/spanish/NumeralSpa.gf rename to next-lib/src/spanish/NumeralSpa.gf diff --git a/lib/next-resource/spanish/ParadigmsSpa.gf b/next-lib/src/spanish/ParadigmsSpa.gf similarity index 100% rename from lib/next-resource/spanish/ParadigmsSpa.gf rename to next-lib/src/spanish/ParadigmsSpa.gf diff --git a/lib/next-resource/spanish/PhonoSpa.gf b/next-lib/src/spanish/PhonoSpa.gf similarity index 100% rename from lib/next-resource/spanish/PhonoSpa.gf rename to next-lib/src/spanish/PhonoSpa.gf diff --git a/lib/next-resource/spanish/PhraseSpa.gf b/next-lib/src/spanish/PhraseSpa.gf similarity index 100% rename from lib/next-resource/spanish/PhraseSpa.gf rename to next-lib/src/spanish/PhraseSpa.gf diff --git a/lib/next-resource/spanish/QuestionSpa.gf b/next-lib/src/spanish/QuestionSpa.gf similarity index 100% rename from lib/next-resource/spanish/QuestionSpa.gf rename to next-lib/src/spanish/QuestionSpa.gf diff --git a/lib/next-resource/spanish/RelativeSpa.gf b/next-lib/src/spanish/RelativeSpa.gf similarity index 100% rename from lib/next-resource/spanish/RelativeSpa.gf rename to next-lib/src/spanish/RelativeSpa.gf diff --git a/lib/next-resource/spanish/ResSpa.gf b/next-lib/src/spanish/ResSpa.gf similarity index 100% rename from lib/next-resource/spanish/ResSpa.gf rename to next-lib/src/spanish/ResSpa.gf diff --git a/lib/next-resource/spanish/SentenceSpa.gf b/next-lib/src/spanish/SentenceSpa.gf similarity index 100% rename from lib/next-resource/spanish/SentenceSpa.gf rename to next-lib/src/spanish/SentenceSpa.gf diff --git a/lib/next-resource/spanish/StructuralSpa.gf b/next-lib/src/spanish/StructuralSpa.gf similarity index 100% rename from lib/next-resource/spanish/StructuralSpa.gf rename to next-lib/src/spanish/StructuralSpa.gf diff --git a/lib/next-resource/spanish/TextSpa.gf b/next-lib/src/spanish/TextSpa.gf similarity index 100% rename from lib/next-resource/spanish/TextSpa.gf rename to next-lib/src/spanish/TextSpa.gf diff --git a/lib/next-resource/spanish/VerbSpa.gf b/next-lib/src/spanish/VerbSpa.gf similarity index 100% rename from lib/next-resource/spanish/VerbSpa.gf rename to next-lib/src/spanish/VerbSpa.gf diff --git a/lib/next-resource/swedish/AdjectiveSwe.gf b/next-lib/src/swedish/AdjectiveSwe.gf similarity index 100% rename from lib/next-resource/swedish/AdjectiveSwe.gf rename to next-lib/src/swedish/AdjectiveSwe.gf diff --git a/lib/next-resource/swedish/AdverbSwe.gf b/next-lib/src/swedish/AdverbSwe.gf similarity index 100% rename from lib/next-resource/swedish/AdverbSwe.gf rename to next-lib/src/swedish/AdverbSwe.gf diff --git a/lib/next-resource/swedish/AllSwe.gf b/next-lib/src/swedish/AllSwe.gf similarity index 100% rename from lib/next-resource/swedish/AllSwe.gf rename to next-lib/src/swedish/AllSwe.gf diff --git a/lib/next-resource/swedish/AllSweAbs.gf b/next-lib/src/swedish/AllSweAbs.gf similarity index 100% rename from lib/next-resource/swedish/AllSweAbs.gf rename to next-lib/src/swedish/AllSweAbs.gf diff --git a/lib/next-resource/swedish/CatSwe.gf b/next-lib/src/swedish/CatSwe.gf similarity index 100% rename from lib/next-resource/swedish/CatSwe.gf rename to next-lib/src/swedish/CatSwe.gf diff --git a/lib/next-resource/swedish/ConjunctionSwe.gf b/next-lib/src/swedish/ConjunctionSwe.gf similarity index 100% rename from lib/next-resource/swedish/ConjunctionSwe.gf rename to next-lib/src/swedish/ConjunctionSwe.gf diff --git a/lib/next-resource/swedish/DiffSwe.gf b/next-lib/src/swedish/DiffSwe.gf similarity index 100% rename from lib/next-resource/swedish/DiffSwe.gf rename to next-lib/src/swedish/DiffSwe.gf diff --git a/lib/next-resource/swedish/ExtraScandSwe.gf b/next-lib/src/swedish/ExtraScandSwe.gf similarity index 100% rename from lib/next-resource/swedish/ExtraScandSwe.gf rename to next-lib/src/swedish/ExtraScandSwe.gf diff --git a/lib/next-resource/swedish/ExtraSwe.gf b/next-lib/src/swedish/ExtraSwe.gf similarity index 100% rename from lib/next-resource/swedish/ExtraSwe.gf rename to next-lib/src/swedish/ExtraSwe.gf diff --git a/lib/next-resource/swedish/ExtraSweAbs.gf b/next-lib/src/swedish/ExtraSweAbs.gf similarity index 100% rename from lib/next-resource/swedish/ExtraSweAbs.gf rename to next-lib/src/swedish/ExtraSweAbs.gf diff --git a/lib/next-resource/swedish/GrammarSwe.gf b/next-lib/src/swedish/GrammarSwe.gf similarity index 100% rename from lib/next-resource/swedish/GrammarSwe.gf rename to next-lib/src/swedish/GrammarSwe.gf diff --git a/lib/next-resource/swedish/IdiomSwe.gf b/next-lib/src/swedish/IdiomSwe.gf similarity index 100% rename from lib/next-resource/swedish/IdiomSwe.gf rename to next-lib/src/swedish/IdiomSwe.gf diff --git a/lib/next-resource/swedish/IrregSwe.gf b/next-lib/src/swedish/IrregSwe.gf similarity index 100% rename from lib/next-resource/swedish/IrregSwe.gf rename to next-lib/src/swedish/IrregSwe.gf diff --git a/lib/next-resource/swedish/IrregSweAbs.gf b/next-lib/src/swedish/IrregSweAbs.gf similarity index 100% rename from lib/next-resource/swedish/IrregSweAbs.gf rename to next-lib/src/swedish/IrregSweAbs.gf diff --git a/lib/next-resource/swedish/LangSwe.gf b/next-lib/src/swedish/LangSwe.gf similarity index 100% rename from lib/next-resource/swedish/LangSwe.gf rename to next-lib/src/swedish/LangSwe.gf diff --git a/lib/next-resource/swedish/LexiconSwe.gf b/next-lib/src/swedish/LexiconSwe.gf similarity index 100% rename from lib/next-resource/swedish/LexiconSwe.gf rename to next-lib/src/swedish/LexiconSwe.gf diff --git a/lib/next-resource/swedish/MorphoSwe.gf b/next-lib/src/swedish/MorphoSwe.gf similarity index 100% rename from lib/next-resource/swedish/MorphoSwe.gf rename to next-lib/src/swedish/MorphoSwe.gf diff --git a/lib/next-resource/swedish/NounSwe.gf b/next-lib/src/swedish/NounSwe.gf similarity index 100% rename from lib/next-resource/swedish/NounSwe.gf rename to next-lib/src/swedish/NounSwe.gf diff --git a/lib/next-resource/swedish/NumeralSwe.gf b/next-lib/src/swedish/NumeralSwe.gf similarity index 100% rename from lib/next-resource/swedish/NumeralSwe.gf rename to next-lib/src/swedish/NumeralSwe.gf diff --git a/lib/next-resource/swedish/ParadigmsSwe.gf b/next-lib/src/swedish/ParadigmsSwe.gf similarity index 100% rename from lib/next-resource/swedish/ParadigmsSwe.gf rename to next-lib/src/swedish/ParadigmsSwe.gf diff --git a/lib/next-resource/swedish/PhraseSwe.gf b/next-lib/src/swedish/PhraseSwe.gf similarity index 100% rename from lib/next-resource/swedish/PhraseSwe.gf rename to next-lib/src/swedish/PhraseSwe.gf diff --git a/lib/next-resource/swedish/QuestionSwe.gf b/next-lib/src/swedish/QuestionSwe.gf similarity index 100% rename from lib/next-resource/swedish/QuestionSwe.gf rename to next-lib/src/swedish/QuestionSwe.gf diff --git a/lib/next-resource/swedish/RelativeSwe.gf b/next-lib/src/swedish/RelativeSwe.gf similarity index 100% rename from lib/next-resource/swedish/RelativeSwe.gf rename to next-lib/src/swedish/RelativeSwe.gf diff --git a/lib/next-resource/swedish/ResSwe.gf b/next-lib/src/swedish/ResSwe.gf similarity index 100% rename from lib/next-resource/swedish/ResSwe.gf rename to next-lib/src/swedish/ResSwe.gf diff --git a/lib/next-resource/swedish/SentenceSwe.gf b/next-lib/src/swedish/SentenceSwe.gf similarity index 100% rename from lib/next-resource/swedish/SentenceSwe.gf rename to next-lib/src/swedish/SentenceSwe.gf diff --git a/lib/next-resource/swedish/StructuralSwe.gf b/next-lib/src/swedish/StructuralSwe.gf similarity index 100% rename from lib/next-resource/swedish/StructuralSwe.gf rename to next-lib/src/swedish/StructuralSwe.gf diff --git a/lib/next-resource/swedish/VerbSwe.gf b/next-lib/src/swedish/VerbSwe.gf similarity index 100% rename from lib/next-resource/swedish/VerbSwe.gf rename to next-lib/src/swedish/VerbSwe.gf diff --git a/src/morpho-server/MorphoServer.hs b/src/morpho-server/MorphoServer.hs index 87d5bdf38..fcaa96197 100644 --- a/src/morpho-server/MorphoServer.hs +++ b/src/morpho-server/MorphoServer.hs @@ -19,13 +19,11 @@ import FastCGIUtils import URLEncoding -- FIXME !!!!!! - grammarFile :: IO FilePath -grammarFile = return "/Users/aarne/GF/lib/alltenses/ParadigmsFin.gfo" ---grammarFile = return "/Users/bringert/Projects/gf/lib/alltenses/ParadigmsFin.gfo" +grammarFile = return "/Users/bringert/Projects/gf/lib/alltenses/ParadigmsFin.gfo" + grammarPath :: FilePath -grammarPath = "/Users/aarne/GF/lib/prelude" ---grammarPath = "/Users/bringert/Projects/gf/lib/prelude" +grammarPath = "/Users/bringert/Projects/gf/lib/prelude" main :: IO () main = do initFastCGI