You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
xpetit def316d0f3
Reformat markdown (with prettier)
4 years ago
..
README.md Reformat markdown (with prettier) 4 years ago

README.md

Pronoun

Instructions

Create a function called pronoun that has a string as parameter. This function returns an object that will have all the pronouns, present in the string, as keys. Each key will have a sub object with the first word after each of the pronouns found in the string. Also, a property count must be added, to the sub object, with the amount of occurrences of the pronoun.

Example

const ex = 'Using Array Destructuring, you you can iterate through objects easily.'

{ you: { word: [ 'can' ], count: 2 } }

const ex = 'If he you want to buy something you have to pay.'

{
  he: { word: [], count: 1}
  you: { word: [ 'want', 'have' ], count: 2 }
}