Jan 3, 2013, 3:24 PM
Re: [smilebey] Counting matches with an array of strings
But the concern by Bill might be a problem. Dont know how severe.
Is there any way to go through the string from word to word? Split is a solution but that would take too much computing time since my strings are the content of long text files.
Although some of the examples given by Bill can be solved by technical improvements, the general issue raised by Bill goes far beyond technical solutions. The problem is that the bill of requirements is unsufficiently detailed. If my client (or my boss, or whoever) asks me to recognize the word Virginia in a text file, I will happily do it, but don't ask me to recognize whether is it an American State or the first name of my elder daughter. No way to know, unless you can give me a context condition, a business rule, or some other form of litmus test to find out.
(To tell the full truth, my daughter's first name is really Carolina, not Virginia. That makes the test somewhat easier, just look for "North" or "South" before the word Carolina if it is a State of the Union or my daughter's name, but that leaves the Virginia or Georgia issue, as well as many others, unsolved.)
(This post was edited by Laurent_R on Jan 3, 2013, 3:36 PM)