With regards to this solution.
Is there a way to limit the number of keywords to be taken into consideration? For example, I’d like only first 1000 words of text to be calculated. There’s a “Take” method in Linq, but it serves a different purpose – all words will be calculated, and N records will be returned. What’s the right alternative to make this correctly?
Simply apply
Takeearlier – straight after the call toSplit: