mbeals Posted November 19, 2007 Share Posted November 19, 2007 I have an email parsing script based in php that rips apart standard formatted email and then writes the results to a database and to a splunk log. One of th issues I'm facing is that one of the fields has about 6 possible values, which users keep misspelling. This is screwing up my stats, as I have occurrences for a single instance spread out over several just because it's spelled wrong. So, before I start writing some crazy regex to match common letter combos, is there an easier way? Is there a way to use something like pspell with a custom wordlist...or better yet...values pulled from a database? Link to comment https://forums.phpfreaks.com/topic/77932-compare-input-against-wordlist/ Share on other sites More sharing options...
Wes1890 Posted November 19, 2007 Share Posted November 19, 2007 ^ Just use a dropdown list with the 6 possible answers in the dropdown list. That way, it's never misspelled, and you get your answer. Link to comment https://forums.phpfreaks.com/topic/77932-compare-input-against-wordlist/#findComment-394579 Share on other sites More sharing options...
mbeals Posted November 19, 2007 Author Share Posted November 19, 2007 I would, but I don't have control of the form being submitted. The emails are coming from a tech support call center. I've worked with them to standardize as much as I can, and I've built that regex accordingly, but there are a few fields that have to be hand typed. It also needs to be dynamic so when the list of possibilities changes in our system (which it will do on a weekly basis), it will pick up the changes from a central source. Link to comment https://forums.phpfreaks.com/topic/77932-compare-input-against-wordlist/#findComment-394630 Share on other sites More sharing options...
Wes1890 Posted November 19, 2007 Share Posted November 19, 2007 Do you have an example? Link to comment https://forums.phpfreaks.com/topic/77932-compare-input-against-wordlist/#findComment-394637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.