Hi,
I'm trying to get x number of unique words on each side of a word in a string in C#. for example, the method
GetUniqueWords("she sells seashells, by the seashore. the shells she sells, are surely seashells.", "seashore", 3)
(The first parameter is the sentence string. The second parameter is the word that will be used to get words on its two sides. The third parameter is the number of words to check)
will return a list of string with values:
seashells
by
the
shells
she
Thanks in advance.