I’m still working through my first program with Mathematica.
As it goes I want to “TextRecognize” (successful there) and compare the text output vs a control. My first thought was to shorten the output to about 9 characters (enough for the purposes of a prototype) and at first I wanted to make a hard compare with “SmithWatermanSimilarity” or “NeedlemanWunschSimilarity” or “EditDistance”. Now I’m thinking I want to compare the output vs a small control list and have wolfram tell me which item my output is most like.
Mathematica by default hides quotes around strings and when a function doesn’t understand an argument then by default it just returns the original expression. FullForm should help diagnose what is being returned.
Thanks Bill (it’s always neat meeting another Bill) I found the “StringTake” command and it worked perfectly. I updated my post with the next hurdle in my programming.