docs(pronoun): correct grammar

This commit is contained in:
davhojt 2022-06-19 23:51:40 +03:00 committed by Dav Hojt
parent 23d3613428
commit 6d7155a2e0
1 changed files with 13 additions and 4 deletions

View File

@ -2,10 +2,19 @@
### Instructions
Create a function called `pronoun` that has a string as parameter. This function returns an object
that will have all the personal pronouns, present in the string, as keys. Each key will have a sub object with the
first word after each of the personal pronouns found in the string.
Also, a property `count` must be added, to the sub object, with the amount of occurrences of the pronoun.
Create a function named `pronoun` that accepts a string parameter.
This function returns an object that will have all the personal pronouns, present in the string, as keys. Each key will have a sub object with the first word after each of the personal pronouns found in the string.
You must also a `count` property to the sub object, with the amount of occurrences of the pronoun.
Pronouns:
- i
- you
- he
- she
- it
- they
- we
#### Example