Commit Graph

43 Commits

Author SHA1 Message Date
Krasimir Angelov
6bc965f6c2 the names API in more languages 2023-08-16 19:39:22 +02:00
Krasimir Angelov
22a168198b support for measurement units 2023-07-25 19:38:43 +02:00
Aarne Ranta
edfe72514b fixed irreg verbs in DictFre; reject non-verbs in ParadigmsGer (check that infinitive ends -n) 2023-04-04 15:51:09 +02:00
Krasimir Angelov
828bf9c677 extend the names API 2023-02-07 08:47:34 +01:00
Krasimir Angelov
7d9d2a2b5c support plural PNs 2022-10-21 21:48:51 +02:00
Hans Leiss
1379ba6c77 (Ger) reflexive RNP in ExtraGer completed ;
improved Slash-rules in tests/german/TestLangGer
2022-07-16 12:18:13 +02:00
Hans Leiss
7778e6138c (Ger) reimplementation of infinitives to improve compilation
- removed Control and treat control verbs with VPSlash.objCtrl:Bool

- combined VP.inf and VP.infExt to VP.inf with inplace/extracted parts
  depending on Agr, to subj/obj-control reflexives in infinitival complements

- AllGer compiles from src in 250s (SlashV2VNP!), .gfo loads in 15s on x86_64
2022-04-06 12:55:48 +02:00
aarneranta
cb502488d1 some ParadigmsEng,Fin,Ger additions 2021-07-30 09:29:19 +02:00
aarneranta
94341f57f9 removed the rest of variants from german/ except from LexiconGer 2021-01-19 17:48:14 +01:00
Hans Leiss
8fb8ddd808 Ger: improved infinitives (and passives); tests with more verbs in testing/german
- NP: added field isLight in order to push negation behind light nps;
  this had been done in gf-3.9 using field isPron, but isPron is now
  used to put accusative pronoun before dative pronoun. Removed field
  adv: adverbial extensions cannot be extracted (todo: also for CN).
  Reduced isLight*isPron to w:Weight with 3 values: WPron, WLight, WHeavy.

- added param Control and field ctrl:Control to classify V2V-verbs into
  subject- and object-contol verbs, use ctrl to make reflexives agree
  with subject resp. object in VPSlash, and refine ComplSlash.

- Verb: new versions of ComplVV, SlashV2V and SlashVV to give better
  (nested) infinitives (extracting infzu and correcting object order).
  a) nested SlashVV doesn't work properly;
  b) SlashV2VNP may have to be commented out to prevent a stack overflow
     when compiling.
  Intended change of SlashV2VNP in tests/german/TestLangGer could not
  be tested due to size problems with the compiler.

- VP: changed field a1 : Polarity => Str to a1:Str to collect the adverbs
  coming before negation, using (negation : Polarity => Str) in mkClause.
  Use objCtrl:Bool instead of missingAdv to let reflexives agree with object.

- ResGer: insertObjNP reorganized, infzuVP added

- DictVerbsGer: some corrections (helft -> hilft, *sprecht -> *spricht)

- Some potential passive rules in tests/german/TestLangGer|Eng

- ExtraGer needs to be cleaned up with repect to the modified mkClause.
2019-09-18 15:16:42 +02:00
Hans Leiss
d9928919e3 (Ger) Readjusting accdatV3 in ParadigmsGer and modifying V3-examples in LexiconGer instead
ParadigmsGer had two constructions of verbs v:V3 with dat- and acc-object nps,

(1)      mkV3 : V -> V3 = \v -> mkV3 v accPrep datPrep ;
(2)  accdatV3 : V -> V3 = \v -> mkV3 v datPrep accPrep ;  -- (no prepositions)

In a previous patch, I had replaced (accdatV3 v) to (mkV3 v accPrep datPrep), as the
name suggested. (This actually was the meaning of accdatV3 in gf-3.2, which had only
a non-overloaded mkV3 : V -> Prep -> Prep -> V3.)

The reason for having two constructions for dat+acc-verbs in Ger seems to be *Eng*:
for English, ditransitive V3-verbs are defined by

(2')     mkV3 : V -> V3 = \v -> mkV3 v noPrep noPrep ;

like "to give sb sth", where the indirect argument comes first (c2=indir), the direct
second (c3=dir), corresponding to c2=datPrep, c3=accPrep in Ger; apparently, this was
meant by the comment (no prepositions) in (2). Other V3-verbs in Eng are defined by

(1')    mkV3 : V -> Prep -> V3 = \v,p -> mkV3 v noPrep p ;

like "to give sth to sb", so that (c2=dir), (c3=indir-with preposition),
corresponding to c2=acc,c3=dat in Ger, i.e. (1).

In order to get trees with equal meaning in Ger and Eng, the direct and indirect
arguments of corresponding verbs must match. Therefore, some V3-verbs in Ger have to
be defined using (1), others using (2), although they syntactically behave similar.

This patch therefore reinstalls (1) and (2), and changes the V3 in LexiconGer to:

  give_V3 = accdatV3 Irreg.geben_V ; -- c2=datPrep, c3=accPrep, to fit
             -- to Eng ditransitive: give sb(indir) sth(dir) (no preposition)

  sell_V3 = mkV3 (no_geV (regV "verkaufen")) ;    -- Eng: mkV3 v noPrep toPrep
  send_V3 = mkV3 (regV "schicken") ; -- Ger mkV3 v = Ger: mkV3 v accPrep datPrep
2019-07-08 16:09:17 +02:00
Hans Leiss
03e404e518 Improving pronoun-switch and partial ordering of objects in Ger 2019-06-29 20:40:46 +02:00
Aarne Ranta
95ca88bf02 some paradigm extensions 2018-01-21 12:18:15 +01:00
Aarne Ranta
3703b76856 new cases to Ger.mkN 2018-01-14 22:19:19 +01:00
aarne
df39e466bb some new functionalities in Ger 2017-06-05 12:46:53 +00:00
aarne
4fa9ca5d22 German V3 default without preposition is now Dat+Acc, not Acc+Dat - in conformance with ditransitives in other languages 2015-10-15 15:08:25 +00:00
aarne
44986e0dc3 revised comments in Construction so that some functions can be shown in absfun doc 2015-10-15 15:01:38 +00:00
aarne
e36239cf67 restored one-arg mkPN 2015-07-23 16:03:18 +00:00
scharolta_siencnik
dc143dcb02 German resource grammar: major changes. 2015-07-23 15:50:05 +00:00
andrea.christina.unger
6f8f9da3ff added auxV2V (parallel to auxVV) 2015-05-27 14:47:35 +00:00
hallgren
4c38803eea Convert many RGL modules from Latin-1 to UTF-8 to speed up compilation
Also add flags coding=utf8 to silence warnings.
2014-08-19 19:42:05 +00:00
aarne
6ffdf419e7 moved Names to Construction, to make the structure simpler ; use months and weeks as PN's as well 2014-06-18 09:27:57 +00:00
aarne
c18ac43a15 Scharolta's DictionaryGer fixes 2014-05-29 12:06:44 +00:00
aarne
29f8a7b33f several fixes in German RGL: compound verbs added; compound forms of nouns added; made dative -e optional; made mkV Str V recognize which prefixes are certainly not movable ones ((be,er,ge,ver,zer) 2014-05-29 10:21:49 +00:00
aarne
76cad15007 DictionaryGer now with 22k lemmas, after a new extraction from Wiktionary 2014-05-05 21:46:20 +00:00
aarne
930fa3aa0e German Dict and Paradigms: added a case to mkN and removed bogus "e" plurals 2014-05-05 20:36:44 +00:00
aarne
3b77a86b71 more complex verb paradigms for German 2014-05-05 13:42:43 +00:00
aarne
db4d5de815 shall_VV and should_VV in all Dictionary modules, to avoid a common failure ; should be probably in Constructions 2014-04-29 17:10:58 +00:00
aarne
b192199aec interjections in DictEng Fin and Ger 2013-12-02 11:09:28 +00:00
hallgren
2c8fed764b lib/src: adding --# -coding=latin1 to 119 RGL modules
Adding coding pragmas
  
	--# -coding=latin1
  
so that grammars will continue to work when we change the default character
encoding to UTF-8.
2013-11-22 17:26:00 +00:00
aarne
77ca8a89a4 compound word paradigm in Ger 2013-04-03 12:51:23 +00:00
aarne
16b8296562 a typo in ParadigmsGer.mkV2 ; added comma in NounGer.RelCN 2013-03-10 16:17:28 +00:00
aarne
54c6dc5fbe refined the check whether a complement has a preposition by adding a parameter, in Ger 2013-03-08 08:02:06 +00:00
kr.angelov
2c11a50c0a an optimization in the German grammar for the dative/genitive variants 2012-09-26 11:11:42 +00:00
aarne
196281b67e some Ger corrections by Erzsébet 2012-05-15 09:16:57 +00:00
aarne
c3f6d50fdb German verbs with -ieren 2011-03-08 21:07:17 +00:00
aarne
fa56aa9306 documented Paradigms for Swe, Ger, Fre 2010-12-14 22:06:52 +00:00
aarne
850b0cf22c German and Dutch adjectives with -er corrected 2010-08-23 07:43:58 +00:00
aarne
6624bece17 adjustments in Phrasebook 2010-05-27 20:44:39 +00:00
aarne
e6dfb602aa German preposition contractions 2010-05-26 09:37:17 +00:00
aarne
7b4cae2a6a fixed place of infinitive particle in german fixed prefix 2009-12-17 09:24:16 +00:00
aarne
a652bba8eb Paradigm for German fixed prefix verbs 2009-12-17 09:14:06 +00:00
aarne
a1fdeb6704 next-lib renamed to lib, lib to old-lib 2009-06-22 15:39:08 +00:00