Posted By

reboltutorial on 12/11/10


Tagged


Versions (?)

Google Spell


 / Published in: R
 

URL: http://rebol.wik.is/Google-spell

  1. google-spell: func [ check [string!]
  2. /local req result suggestions
  3. ][
  4. req: reform compose copy [
  5. <spellrequest textalreadyclipped="0" ignoredups="1" ignoredigits="1" ignoreallcaps="0">
  6. <text> (check) </text> </spellrequest>
  7. ]
  8. result: load/markup read/custom https://www.google.com/tbproxy/spell reduce [ 'POST req ]
  9. either parse result [ tag! tag! tag! set suggestions string! tag! tag! end ][
  10. parse suggestions none
  11. ] [ none ]
  12. ]

Report this snippet  

You need to login to post a comment.