Commit Graph
14 Commits
Author SHA1 Message Date
Krasimir Angelov 7de7d780b2 extensions by Codex 2026-10-02 13:28:10 +02:00
aarnerantaandClaude Opus 4.8 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 22a168198b support for measurement units 2023-07-25 19:38:43 +02:00
Krasimir Angelov 14cabc847a make MorphoPol usable as an API 2023-01-20 18:52:06 +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
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
adam.slaski 95a035152c morphoPol revisited 2011-06-23 12:37:28 +00:00
aarne 57832da3d3 restored OrigMorphoPol and OrigNounMorphoPol to make ParadigmsPol compilable 2010-12-22 17:02:01 +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
adam.slaski 9fa92b7a2e polish demo 2010-05-26 22:34:20 +00:00
aarne 37c6cb93e3 spaces before semicolons in ParadigmsPol to help synopsis generation 2010-04-04 14:05:12 +00:00
aarne f1933593e3 Polish resource grammar 2009-10-23 12:44:58 +00:00