70 likes | 485 Views
Limerick Checker. Project Group Members: Jestin Ledlum Bryon Baumstarck Yining Wang. Project Objective :. Part 1 - Rhyme check User enters two words (can be changed to subroutine input) Check if input words rhymes (using Rhymezone as source)
E N D
Limerick Checker Project Group Members: JestinLedlum Bryon Baumstarck Yining Wang
Project Objective: • Part 1 - Rhyme check • User enters two words (can be changed to subroutine input) • Check if input words rhymes (using Rhymezone as source) • Return result (to be changed to true/false) • Part 2 - Limerick Check • Given some text • Check that last words of lines 1,2,&5 rhyme AND that last words of lines 3&4 rhyme • Print result • Part 3 - Rhyme Recommendation • Given a set of user input • Generate list of recommended rhyming words
Modules Being Used: • LWP::Simple • Used to connect to www.rhymezone.com • 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