home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11658 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.2 KB

  1. Xref: sparky comp.os.msdos.programmer:11658 comp.lang.pascal:7701
  2. Newsgroups: comp.os.msdos.programmer,comp.lang.pascal
  3. Path: sparky!uunet!wupost!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!s.psych.uiuc.edu!amead
  4. From: amead@s.psych.uiuc.edu (Alan Mead)
  5. Subject: ALGORITHM to match patterns flexibly needed
  6. Message-ID: <BzzBLs.Gr3@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: UIUC Department of Psychology
  9. Date: Mon, 28 Dec 1992 17:08:14 GMT
  10. Lines: 21
  11.  
  12. I hope I've posted this request to appropriate groups, I included
  13. Pascal because that's the target language but I can read C, FORTRAN,
  14. etc.  I need a way to count the number of typos by comparing a sample
  15. string with a target string.  I'm not sure how smart UNIX 'diff' is,
  16. but I would think the problem is analagous: you wouldn't want to
  17. declare two files completely different because one was preceeded by an
  18. extra blank line.
  19.  
  20. For example,
  21.  
  22. target: run Spot run.
  23.  
  24. sample 1 (1 error): ruyn Spot run.
  25. sample 2 (2 errors): rnu Spot run.
  26. sample 3 (2 errors): runnm Spot run.
  27. and, incidentally,
  28. sample 4 (1 error): run spot run.
  29.  
  30. I would appreciate any suggestion.  Thanks very much.
  31.  
  32. -alan mead
  33.