Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Last active April 4, 2024 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsh-code/ee427d572795f09e9392582603d647e2 to your computer and use it in GitHub Desktop.
Save tsh-code/ee427d572795f09e9392582603d647e2 to your computer and use it in GitHub Desktop.
Your task is to find unique individuals in the given text. As a result, return an array of objects in the given format:
[
{
firstName: string,
lastName: string,
presumedGender: "male" | "female" | "unknown"
}
]
As an answer, I expect only an array of objects.
Text: Lisa Turner and Mark Davis went to the park together. They enjoyed a picnic and played frisbee under the warm sun. Lisa brought sandwiches, while Mark brought refreshing drinks. They laughed, shared stories, and had a great time in each other's company. As the day unfolded, Lisa Turner and Mark Davis realized how much they cherished these simple moments together.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment