Suppose I am developing a small Chrome extension primarily using JavaScript. Given a list of strings such as:
Artist - Song Name
Artist, Song Name
Song Name - Artist
Irrelevant info - Song Name - Artist
and so on.
I need to extract only the Song Name from each string, but there are various possible formats the strings could take.
My question is, what is the most effective method for extracting this information? Should machine learning be used? If so, can it be implemented in JS or should an API be utilized? Alternatively, is there another solution besides machine learning?
P.S.
I understand that this question may not align with the typical queries on this site and might appear open-ended and vague. However, I couldn't find anywhere else to seek advice, so
Thank you in advance.