Limerick Checker Project Group Members: Jestin Ledlum Bryon Baumstarck Yining Wang
Project Objective: Part 1 - Rhyme check 1. User enters two words (can be changed to subroutine input) 2. Check if input words rhymes (using Rhymezone as source) 3. Return result (to be changed to true/false) Part 2 - Limerick Check 1. Given some text 2. Check that last words of lines 1,2,&5 rhyme AND that last words of lines 3&4 rhyme 3. Print result Part 3 - Rhyme Recommendation 1. Given a set of user input 2. Generate list of recommended rhyming words
Modules Being Used: LWP::Simple Used to connect to CGI qw(:standard) Required to import standard set of CGI functions CGI::Carp qw(fatalsToBrowser) Used to send compile/run errors to the web browser
Limitations: Mechanize Due to the non-standard HTML programming of the RhymeZone website, we were unable to utilize standard HTML modules CMUDict Due to it’s inaccurate return of data, we were unable to use this module, which was the only dictionary module found with capabilities to check word rhyme
Lessons Learned: Use of Regular Expressions Used to parse the rhyme words returned from the website (Rhymezone.com) Subroutines Used to allow for code reuse and reduce code/runtime duplication Ease of text manipulation via programming