Commit Graph

63 Commits

Author SHA1 Message Date
aarneranta 8c4cd58bd1 polish: complete the RGL enough to build an application grammar
Adding Polish to informath (grammars/next) exposed a set of gaps. Unlike
Czech, StructuralPol was already complete; what was missing was a handful
of lins, a way to govern the nominative, and some outright mistakes.

Missing lins, all reached as qualified Grammar.X by the application's
functors and so not shimmable from the application side:

  AdjectivePol  AdvAP
  SentencePol   SSubjS
  IdiomPol      ImpP3
  StructuralPol that_Subj
  MarkupPol     new module (Markup is not part of the RGL build script,
                so it is compiled on demand, as MarkupCze is)
  ParadigmsPol  mkAdv (every other ParadigmsX has it; the application
                interfaces reach it as Paradigms.mkAdv)

ImpP3 has no third-person imperative to use, so it takes the standard
"niech" periphrasis. The copula takes the future ("niech x będzie grupą")
and every other verb the present ("niech x należy do A"): być is the only
Polish verb with a synthetic future, and imienne marks exactly the copular
VPs.

NomPrep: ComplCase had no nominative at all, so "jako", "niż" and
"zdefiniowany jako" -- all of which govern the nominative -- came out
locative ("mniejszy niż liczbie"). mkCompl now maps Nom to a new NomPrep,
and the dep tables of the pronouns, nounPN, mkPN and the structural NPs
cover it. LexiconNounPol is marked DO NOT EDIT, but paris_PN and john_PN
inline their own dep tables and so had to be extended too.

Two corrections:

  VerbPol.CompCN used the nominative for a predicative noun, giving
  "x jest grupa"; Polish uses the instrumental, as CompNP right below it
  already does.

  ExtendPol.ExistsNP inherited ExistNP from ExtendFunctor, giving
  "jest macierz". Polish distinguishes the two: "there exists" is istnieć,
  which is what mathematical prose uses.

ParadigmsPol.guess_paradigm_basic never matched -ość, the productive
feminine abstract suffix, so sprzeczność took a masculine declension
(*sprzeczności/a, *sprzecznościowi) despite being tagged feminine. It now
routes to the kość paradigm.

Also documents, without changing, why the 2-string mkN throws its genitive
away: guess_paradigm's 2-string table is unsound (its first branch matches
every noun in -a, and its branches disagree about whether mkNTable* takes
the nominative or the bare stem), so passing sggen to it turns
"liczba"/"liczby" into *liczbaa. The 1-string guesser is the sound path
until that table is repaired.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-16 19:22:24 +02:00
Krasimir Angelov 9458f96f0b remove duplicated definitions 2026-04-21 20:27:57 +02:00
Krasimir Angelov c7fe453c12 use consistent lin X everywhere 2025-11-14 14:12:57 +01:00
Krasimir Angelov fb398c603e The new Decimal API 2023-08-21 20:14:26 +02:00
Krasimir Angelov 531e2c2dd2 progress on the Names API 2023-08-07 21:15:48 +02:00
Krasimir Angelov 22a168198b support for measurement units 2023-07-25 19:38:43 +02:00
Krasimir Angelov 5d912f78a4 floating point numerals 2023-07-24 20:06:01 +02:00
Krasimir Angelov 645de9955a started a separate module for names 2023-07-24 17:24:13 +02:00
Krasimir Angelov 1b9b15fbed added PassVPSlash 2023-03-16 09:48:16 +01:00
Krasimir Angelov 828bf9c677 extend the names API 2023-02-07 08:47:34 +01:00
Krasimir Angelov 14cabc847a make MorphoPol usable as an API 2023-01-20 18:52:06 +01:00
Krasimir Angelov 7085acacc9 added GN & SN categories for constructing names 2022-12-15 08:44:42 +01:00
Krasimir Angelov b066fb4d35 extended Numerals API. moved from the WordNet grammar 2022-10-21 20:50:49 +02:00
Krasimir Angelov 3bcb34559e added DocumentationPol.gf 2022-08-09 11:23:36 +02:00
Krasimir Angelov 4beacc0f64 added linref PN 2022-08-09 11:22:57 +02:00
krangelov 9d657a6f24 move UseDAP, UseDAPMasc, UseDAPFem to the RGL and implement it for several new languages 2021-04-27 18:00:54 +02:00
krangelov 617cb25f1e generalize infinitive_form 2021-04-27 10:06:12 +02:00
krangelov 85282418a7 added linrefs for A and A2 2021-04-27 10:03:42 +02:00
krangelov b3cc234c14 simplify the code and allow for non-standard pronouns 2021-04-27 08:42:57 +02:00
krangelov 6bf2555a4a helper functions to make it possible to import Polish morphology 2021-04-23 11:19:54 +02:00
Paula e7fcae8680 Pl reflpron (#363)
* Pol: Add it_ReflPron.

* Pol: Correct pronRefl.

* Pol: Remove pronoun without abstract.

* Pol: Add back reflexive poss. pronoun.

* Revert "Pol: Add back reflexive poss. pronoun."

This reverts commit d24a648405.
2020-12-03 13:59:00 +01:00
Inari Listenmaa 2f83cadc2e Merge branch 'polish' into polish-inari-update 2020-10-12 08:07:38 +02:00
Paula Pawlowski 2406c9bfd9 (Pol) Add 2-argument smart paradigm to Inari's work. Add more cases to GuessGender. 2020-10-11 23:41:50 +02:00
Paula Pawlowski 479136bfc5 Pol pronoun: Change formal possessive pronoun. 2020-10-06 19:57:19 +02:00
Inari Listenmaa 7528e87dcd (Pol) Add 1-argument smart paradigm for ambiguous cases 2020-03-06 17:32:44 +01:00
Inari Listenmaa 962a94cb24 (Pol) Start implementing smart paradigms for nouns 2020-02-24 17:23:46 +01:00
Aarne Ranta 07f538cd4e isPost in Pol AP, used in CompA2 2018-03-20 16:01:34 +01:00
Paula Pawlowski 454210858f added noun table 1007a 2018-02-12 10:52:46 +01:00
Aarne Ranta a87a16b19f new Pol noun table from Paula Pawlowski 2018-02-06 17:12:24 +01:00
Aarne Ranta 54d60b60da found the problem in Pol adjectives: due to incomplete string matching, which the compiler doesn't detect 2018-02-06 12:48:21 +01:00
Aarne Ranta 944566b3f4 a variant of Polish mkRegAdj, mkRegAdj_s, using BIND instead of +, to work around what seems to be a compiler bug 2018-02-06 11:28:17 +01:00
hallgren 4061d03aa2 lib/src/*/Numeral*.gf: fix inconsistent inheritance form Cat
While the abstract Numeral inherits only Cat[Numeral,Digits], some of the
concrete NumeralNNN of Numeral inherited everything from CatNNN.

Normally the compiler outputs a warning message when a concrete syntax 
contains superflous lincats, but apparently not when they get included
through inheritance...

This does not seem to cause problems in the Haskell run-time system, but the 
C run-time system fails to load PGFs with superflous lincats.

This problems shows up when creating application grammars that inherit Numeral.
The Phrasebook is an example of such a grammar.
2015-08-26 11:53:16 +00:00
krasimir a47aac0ad8 use BIND in IIDig for all languages in the library 2015-06-11 12:00:57 +00:00
hallgren 75278a5828 Adjust the -path flags in 112 RGL modules
The -path flags in the RGL modules compiled during 'cabal build' now refer 
directly to the needed source directories. References 'alltenses' and 'present'
(and the nonexistent directory 'mathematical') have been removed.

This allows the files to be compiled in any order (e.g. in parallel). In
addition, you can do things like

	gf -retain lib/src/api/TrySwe.gf

without compiling/installing any other RGL modules first, and without 
setting any other path flags or environment variables.
2014-08-18 22:26:29 +00:00
hallgren 1ccd47784d Add explicit character encoding specifications in 39 more RGL modules
To silence warnings and avoid potential problems after changing the default
encoding to UTF-8.
2013-11-25 18:17:12 +00:00
aarne 42f48621f0 ExtAdvS in Pol 2011-09-01 08:14:27 +00:00
adam.slaski 4659511ccf one new verb paradigm for Polish resource and one new function in ExtraPol 2011-06-23 15:28:03 +00:00
adam.slaski a38cb7e09e bug in how8manyIDet fixed 2011-06-23 12:52:04 +00:00
adam.slaski 95a035152c morphoPol revisited 2011-06-23 12:37:28 +00:00
adam.slaski 346825b70f noun morphology revisited 2011-06-23 12:37:12 +00:00
adam.slaski 5b7fe70aec ResPol revisited 2011-06-23 12:35:47 +00:00
adam.slaski b587731817 new verb models added 2011-06-23 12:35:08 +00:00
adam.slaski 876337a59e changes in lexicon noun 2011-06-23 12:34:34 +00:00
aarne 57832da3d3 restored OrigMorphoPol and OrigNounMorphoPol to make ParadigmsPol compilable 2010-12-22 17:02:01 +00:00
aarne f43a53d365 Adam's new Polish noun lexicon 2010-12-19 11:32:32 +00:00
asl (at) mimuw.edu.pl d7ab27d1c7 Polish noun morphology
This is a very cool christmass update that consists of entire new version
of the Polish noun morphology and some minor bugfixes. The new description
of the morphology is generated automaticaly from some linguistic resources that 
have benn recently released free. This description covers (probably) all 
the Polish nouns.
2010-12-18 01:08:27 +00:00
aarne a7aea04c73 added ExtraPolAbs 2010-12-11 20:51:40 +00:00
aarne 4eb3dc04ff ProDrop in ExtraPol 2010-12-08 14:01:12 +00:00
aarne 8a932e3c30 CompCN added to Ger Fin Dut Rus Pol 2010-12-07 20:23:57 +00:00
aarne e9c7ef05a9 know_VQ in resource 2010-08-27 15:14:29 +00:00