Lets say that i am creating a small chrome extension(hence most of my code is in JS). And that given a list of strings e.g:
Artist - Song Name
Artist, Song Name
Song Name - Artist
Irrelevant info - Song Name - Artist
etc.
I only need to extract the Song Name from the string, however, i can't anticipate all the forms the string could appear.
So my question is what is the best way to extract this info? Is it machine learning? If so, can the code be written in JS or should an API be used? Or maybe there is a solution other than Machine Learning?
P.S
I know that this question doesn't really follow the guidelines of the questions that can be asked in this site, and i know that it is kind of open ended and ambiguous, but i couldn't think of anywhere else where to ask this, so
Thank you in advance.