GithubHelp home page GithubHelp logo

gmosx / dart-inflection Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 10.0 52 KB

A port of the Rails/ActiveSupport inflector library to Dart.

License: BSD 3-Clause "New" or "Revised" License

Dart 99.38% Shell 0.62%

dart-inflection's People

Contributors

devoncarew avatar gmosx avatar nawafnaim avatar thosakwe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dart-inflection's Issues

Suggestions (take 'em or leave 'em :)

Could we add a CHANGELOG.md ?

Four comments for the library-level variables like PLURAL.

  1. use a type annotation:

final Converter<String, String> Plural = new PluralEncoder._()

  1. use camel case instead of all caps for the name

  2. use a library-private constructor.

  3. consider a const constructor, which is really nice for this case

Optional:

  1. Consider making these classes callable, so you can do:

Pluralize('input') as an alternative to Pluralize.convert('input')

To do so, add a String call(String input) method to your converters.

Cheers!

Continuous integration system?

Have you thought about hooking this up to a CI system (drone / travis)? It makes it pretty easy to get tests running on each PR.

some pluralizations are incorrect

Great tool!
Not sure if this is the type of issue to report here, but some pluralizations aren't correct. For example:

  • deer to deers
  • bison to bisons
  • aircraft to aircrafts
  • goose to gooses

I tested the method with several of irregular-pluralizing nouns from this website.

More examples in the README, please :)

First off, super cool! Thanks for contributing this library.

I wasn't sure what the inflector was. If you have time, more examples in the README would help explain what this is.

Also, while you're in there, maybe include a note on how to file issues.

Cheers!

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.