Parsing sentences from a String in Swift
I’ve been looking at how to parse sentences from text recently. While I’m still looking for a more Machine Learning approach, I found NSStringEnumerationBySentences which can get me there faster (for now). I need to get all of the sentences from a given String. This could easily be an Objective-C category method. But, I’m trying to learn as much Swift as I can. I haven’t played with extensions yet. Here we go. is what I’ll need, but I need the extension first: Fiddling with Swift’s closure syntax for a…