Limerick Checker - PowerPoint PPT Presentation

buffy
limerick checker n.
Skip this Video
Loading SlideShow in 5 Seconds..
Limerick Checker PowerPoint Presentation
Download Presentation
Limerick Checker

play fullscreen
1 / 6
Download Presentation
Limerick Checker
261 Views
Download Presentation

Limerick Checker

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Limerick Checker Project Group Members: JestinLedlum Bryon Baumstarck Yining Wang

  2. 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

  3. 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

  4. 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

  5. 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