Giter VIP home page Giter VIP logo

titlecase's Introduction

This is a refactoring of John Gruber’s Title Case program, which also includes a universal test suite containing all the test cases listed by John.

The test suite is provided in the form of a Perl script called test.pl which expects to be passed a command line for invoking a program that performs titlecasing. E.g. to test the provided titlecase itself:

perl test.pl ./titlecase

The program under test should work like John’s: it should read any number of titles from standard input, one title per line, and write the case-corrected titles to standard output in the same form.

titlecase's People

Contributors

ap avatar ido50 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

titlecase's Issues

Unexpected output!?

Hello,

use Lingua::EN::Titlecase::Simple 'titlecase';
print titlecase("100's"), "\n";

I am expecting the output would be 100's and not 100'S. I verified this with http://titlecase.com/ and it is returning 100's. Wanted to report to see if this can be fixed (assuming you agree this is an issue).

Thanks in advance!

Error: Can't open text to titlecase: No such file or directory at /usr/local/bin/titlecase line 60

I'm getting a strange error when using titlecase, but only on one of my computers.

For example, if I try to run title case from the terminal using titlecase "text to titlecase", on one of my computers it outputs as expected:

Text to Titlecase

but on my other computer I get an error saying:

Can't open text to titlecase: No such file or directory at /usr/local/bin/titlecase line 60.

Any idea why that might be? I don't know anything about perl, so I'm not sure how to debug it myself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.