Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check plural of words ending with '-n' '-s' and '-z' #5

Open
b606 opened this issue Dec 10, 2020 · 0 comments
Open

Check plural of words ending with '-n' '-s' and '-z' #5

b606 opened this issue Dec 10, 2020 · 0 comments

Comments

@b606
Copy link
Owner

b606 commented Dec 10, 2020

https://rioandlearn.com/plural-in-portuguese/

  • Ending with '-r' and '-z', and '-n' get "-es"
  • Two rules for '-s' :
    • a) add "-es" or
    • b) invariant, has an accent in the first syllable (ex. oásis, lápis, bônus, atlas, vírus, ônibus)

https://www.languagetutorial.org/learn-portuguese/free-portuguese-lessons.html#makingnounsplural
'-s' The plural stays the exact same as the singular. ???

https://ielanguages.com/portuguese-plural-nouns.html
Words that end in -s or -z : have no plural form, so the singular and plural are the same. ???
ex óculos, arroz, ônibus

https://blogs.transparent.com/portuguese/how-to-make-nouns-plural-in-portuguese/
https://www.easyportuguese.com/learn-portuguese-grammar/plural.html says they should get "-es" (ending with '-r' and '-s' and '-z', (nothing about '-n')

https://forum.duolingo.com/comment/25352830/Plural-nouns-in-Portuguese
Words ending in '-n' get an '-s' instead of '-es' ???

Code to modify:

if (last == 'n' || last == 'r' || last == 'N' || last == 'R')
{
str_pluralized = str + "es";
}

if ("zsZS".IndexOf(last) >= 0 )
{
// TODO: Invariant
str_pluralized = str;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant