Re: [Http-webtest-general] [OT] Spell-checking web pages
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ip...> - 2003-11-13 13:51:10
|
>>>>> "WM" == William McKee <wi...@kn...> writes: WM> Hi Ilya, WM> Thanks for the references. I did come across these two packages but WM> didn't see any pre-written scripts for doing bulk testing of websites. WM> Do you think it would be feasible to write a plugin for HTTP::WebTest to WM> do spellchecking using one of these libraries (prob. ispell since it has WM> more dictionaries)? It definitely sounds like interesting idea. And it shouldn't be very hard to implement. Basically plugin should get $response->content then spellcheck it via Text::Aspell or Text::Ispell. IIRC both support spellchecking in HTML documents so you don't even have to bother with parsing HTML. For each misspelling plugin should report an error. If no misspellings test passes. Obviously you need to deal with situation when correct word is not in dictionary. Maybe use a test paramater which points to a file with additional word list. If you need any help with implementation of such plugin just ask. -- Ilya Martynov, il...@ip... CTO IPonWEB (UK) Ltd Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net Personal website - http://martynov.org |