Did I find the right examples for you? yes no

# other_functions.plural_noun

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
```Function return 1 if the nominal group is a plural
Input=list of nominal group             Output=flag(0 if singular or 1 if plural)
```

```        def plural_noun(sn):
"""
Function return 1 if the nominal group is a plural
Input=list of nominal group             Output=flag(0 if singular or 1 if plural)
"""

#init
i = 1

#If we have many subject, we need to know the conjunction
while i < len(sn):
if sn[i]._conjunction != 'AND':
if plural(sn[i].noun[0], sn[i]._quantifier, sn[i].det) == 1:
return 1
else:
#If other conjunction, we have just one element
return 1
i += 1

#If we have some we can have all possibilities
if sn[0].noun == [] and sn[0]._quantifier != 'SOME':
return 0
elif sn[0]._quantifier == 'SOME':
return 1
else:
return plural(sn[0].noun[0], sn[0]._quantifier, sn[0].det)
```

```            if sn[0].noun == ['I']:
return ['am'] + verb[1:]
elif other_functions.plural_noun(sn) == 1:
return ['are'] + verb[1:]
elif sn[0].noun == ['we'] or sn[0].noun == ['you'] or sn[0].noun == ['they']:
```
```        else:
#Plural nouns
if other_functions.plural_noun(sn) == 1:
return verb
else:
```
```                return ['was'] + verb[1:]
#Plural nouns
elif other_functions.plural_noun(sn) == 1:
return ['were'] + verb[1:]
else:
```

```