![]() The next thing I decided to tackle was the adverbs. With this done, I had a partially working product. let cleanSentence = sent.replace(//gi, “”) + “.” After some Googling I found a much more elegant solution. Although I don’t have much experience using regex, I knew that it would be the best solution. Whist it worked, I searched for a better solution. I used split(‘symbol’) and join(‘’) to remove the punctuation and then appended ‘.’ onto the end. My first solution was very primitive but it worked.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |