hi everyone,
i have a program that searches a file for a
string. i need to be able to implement functionality to this progam so that it can find alike strings. for example when i search for running, i want run and all of it's variants such as runner to also be displayed, i have thought about just storing an array of possible stems and searching for them aswell as the original string, however this isn't a good solution as i need to be able to stem strings that aren't always familiar to me. i have included my search method code, i search a file by first reading it into a string and then spliting this string into other strings using tags i have used to format the file; title, abstract, body, keyword and index. i am then searching each of these strings for a target string using the indexof(). does anyone have any idea how i will be able to implement string stemming functionality to this?