Jump to content

Module talk:pt-headword

Page contents not supported in other languages.
Add topic
From Wiktionary, the free dictionary
Latest comment: 2 years ago by Munmula in topic Rewriting this module

Rewriting this module

[edit]

@Daniel Carrero, Ungoliant MMDCCLXIV, Jberkel, Svjatysberega, Cpt.Guapo, Munmula, Koavf, Sarilho1 I am in the process of rewriting this module and changing the format of {{pt-adj}} (to start with) to be smarter and more automatic and work like {{es-adj}}. The idea is that most adjectives need no parameters at all, and those that do have flexible parameters with sensible defaults. See User:Benwing2/test-pt-adj for examples. One thing I notice is that currently {{pt-adj}} has a |comp= parameter (comparable) that defaults to yes. This has clearly failed in that e.g. saudita and massai and vinícola and even misérrimo are listed as comparable because whoever created them didn't bother to add |comp=no. I am planning on changing this so that |comp= has no default, and you have to explicitly specify yes, no or both (= comparable and uncomparable) to get something in the headword indicating comparable status; otherwise nothing is displayed. Existing adjectives that explicitly specify a value for |comp= will keep it, but otherwise there won't be a default. (Also, superlative adjectives like misérrimo won't even support this parameter.) The alternative is to have no |comp= param at all, the same as {{es-adj}}.

Also, I am suspicious of {{pt-adj-infl}} and I believe it should probably be deleted and removed from all pages it currently exists on. No other Romance language outside of Romanian (which has adjectival case and definiteness) feels the need to have a declension table for adjectives; the headword should be sufficient. Furthermore, I suspect a lot of the info in these tables is wrong; e.g. folhado (leafy) claims to have an augmentative folhadão and diminutive folhadinho. These terms certainly exist but appear to be nouns; I can't attest e.g. feminine augmentative folhadona.

Thoughts? Benwing2 (talk) 19:57, 5 September 2022 (UTC)Reply

I greatly welcome all the changes. I would just like to ask for some optional parameters to add alternative plurals and feminine forms and their respective qualifiers. - Sarilho1 (talk) 20:21, 5 September 2022 (UTC)Reply
@Sarilho1 Yup, all this is present, see User:Benwing2/test-pt-adj for examples. Benwing2 (talk) 20:58, 5 September 2022 (UTC)Reply
Looks great! - Sarilho1 (talk) 21:14, 5 September 2022 (UTC)Reply
That's great. Could one of our talented programmers also do automatic hyphenation for Portuguese? If you guys are able to program the automation of much more complex things such as pronunciation and grammar, I guess hyphenation should be easy peasy. - Munmula (talk) 21:09, 5 September 2022 (UTC)Reply
@Munmula This will happen in time. I have already done automatic hyphenation for Spanish and Italian. Benwing2 (talk) 22:06, 5 September 2022 (UTC)Reply
If I'm not mistaken, the rules are basically the same as Spanish, the only difference I remember being double Rs splitting in Portuguese but not Spanish (example: barra is bar-ra in Portuguese and ba-rra in Spanish). - Munmula (talk) 22:16, 5 September 2022 (UTC)Reply