June 16, 2022 Webvoyage Webvoyage Spellchecker Spellchecker For the LCONZ library consortium For the LCONZ library consortium By James Brunskill, By James Brunskill, Computer Systems Consultant, Computer Systems Consultant, University of Waikato Library University of Waikato Library
18
Embed
Anzreg Presentation about the spellchecker (powerpoint)
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
April 13, 2023
Webvoyage SpellcheckerWebvoyage SpellcheckerFor the LCONZ library consortiumFor the LCONZ library consortium
By James Brunskill,By James Brunskill,
Computer Systems Consultant, Computer Systems Consultant, University of Waikato LibraryUniversity of Waikato Library
• This wasn’t really my idea, I borrowed it from Adam Epp, who posted this on voyager-l.
I recently discovered a method by which spell check and other features can be added to WebVoyage. This technique uses the XMLHttpRequest object to redirect the WebVoyage query string to an external program (written in PHP/Perl/etc.) and return the results to a div or span tag in the WebVoyage session.
• Aspell doesn’t seem to be able to handle two languages at once. So in order for our spell checker to handle Maori we had to create our ‘dictionary’ and pretend that it was English...
• Luckily I found a website that offered a list of Maori words for spellchecking.
False Alarms and Strange SuggestionsFalse Alarms and Strange Suggestions
• At first there were a lot valid queries that were coming up with spelling suggestions
• Eg• ISBN
• Osama bin Laden
• Lexis Nexis
• We were also getting strange suggestions • Think the abortion, adoption debacle from Amazon.com
• Or just an example where another suggestion would be much more obvious. Eg. If someone types ‘alow’ as a search they probably mean ‘allow’ not ‘a low’