1 / 6

Limerick Checker

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)

buffy
Télécharger la présentation

Limerick Checker

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

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

More Related