{"_id":"lingo","_rev":"205837","name":"lingo","description":"linguistics module sporting inflection and more","dist-tags":{"latest":"0.0.5"},"maintainers":[{"name":"jpdokter","email":"jurriendokter+coding@gmail.com"}],"time":{"modified":"2021-06-03T13:17:06.000Z","created":"2012-08-03T18:05:23.431Z","0.0.4":"2012-08-03T18:05:23.431Z","0.0.2":"2012-08-03T18:05:23.431Z","0.0.3":"2012-08-03T18:05:23.431Z","0.0.5":"2012-08-03T18:05:23.431Z"},"users":{"kastor":true,"rev087":true},"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"versions":{"0.0.4":{"name":"lingo","description":"linguistics module sporting inflection and more","version":"0.0.4","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["language","linguistics","inflection"],"main":"./index","engines":{"node":">= 0.2.0"},"_id":"lingo@0.0.4","_nodeSupported":true,"_npmVersion":"0.2.8-1","_nodeVersion":"v0.2.5","dist":{"shasum":"f2fca3c5381112d820815fc55610e6c6aad890d1","size":33064,"noattachment":false,"key":"/lingo/-/lingo-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/lingo/download/lingo-0.0.4.tgz"},"directories":{},"publish_time":1344017123431,"maintainers":[{"name":"jpdokter","email":"jurriendokter+coding@gmail.com"}],"_cnpm_publish_time":1344017123431,"deprecated":"This project is abandoned","_hasShrinkwrap":false},"0.0.2":{"name":"lingo","description":"linguistics module sporting inflection and more","version":"0.0.2","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["language","linguistics","inflection"],"main":"./index","engines":{"node":">= 0.2.0"},"_id":"lingo@0.0.2","_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"shasum":"6b2567bc8b31ba13dbbd95c968d52ca64391fbe3","size":32161,"noattachment":false,"key":"/lingo/-/lingo-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/lingo/download/lingo-0.0.2.tgz"},"directories":{},"publish_time":1344017123431,"maintainers":[{"name":"jpdokter","email":"jurriendokter+coding@gmail.com"}],"_cnpm_publish_time":1344017123431,"deprecated":"This project is abandoned","_hasShrinkwrap":false},"0.0.3":{"name":"lingo","description":"linguistics module sporting inflection and more","version":"0.0.3","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["language","linguistics","inflection"],"main":"./index","engines":{"node":">= 0.2.0"},"_id":"lingo@0.0.3","_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"shasum":"bd002ec567eb4065425581f0625dd67324f8e7f4","size":32214,"noattachment":false,"key":"/lingo/-/lingo-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/lingo/download/lingo-0.0.3.tgz"},"directories":{},"publish_time":1344017123431,"maintainers":[{"name":"jpdokter","email":"jurriendokter+coding@gmail.com"}],"_cnpm_publish_time":1344017123431,"deprecated":"This project is abandoned","_hasShrinkwrap":false},"0.0.5":{"name":"lingo","description":"linguistics module sporting inflection and more","version":"0.0.5","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["language","linguistics","inflection"],"main":"./index.js","devDependencies":{"mocha":"*"},"engines":{"node":">= 0.2.0"},"_id":"lingo@0.0.5","dist":{"shasum":"c9b10d8ba3889994ea94473d1695e183421016a3","size":11316,"noattachment":false,"key":"/lingo/-/lingo-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/lingo/download/lingo-0.0.5.tgz"},"maintainers":[{"name":"jpdokter","email":"jurriendokter+coding@gmail.com"}],"directories":{},"publish_time":1344017123431,"_cnpm_publish_time":1344017123431,"deprecated":"This project is abandoned","_hasShrinkwrap":false}},"readme":"\n# Lingo\n\n Lingo is a linguistics module, currently providing inflection and some string transformations. Eventually I would like to extend its capabilities and add additional languages.\n\n## Installation\n\n    $ npm install lingo\n\n## Annotated Source\n\n  Can be viewed [here](http://visionmedia.github.com/lingo).\n\n## Inflection\n\nLingo provides English inflection rules by default, which of course can be extended. View _./lib/languages/en.js_ for more information.\n\n### Language#pluralize()\n\nConvert a singular word to it's plural alternative:\n\n    en.pluralize('fox');\n    // => \"foxes\"\n\n### Language#singularize()\n\nConvert a plural word to it's singular alternative:\n\n    en.singularize('foxes');\n    // => \"fox\"\n\n### Language#isPlural()\n\nCheck if a word is plural:\n\n    en.isPlural('foxes');\n    // => true\n\n    en.isPlural('fox');\n    // => false\n\n### Language#isSingular()\n\nCheck if a word is singular:\n\n    en.isSingular('fox');\n    // => true\n    \n    en.isSingular('foxes');\n    // => false\n\n## Transformations\n\n### lingo.capitalize()\n\nCapitalize the first word of a string:\n\n    lingo.capitalize('hello there');\n    // => \"Hello there\"\n\nCapitalize all words:\n \n    lingo.capitalize('hello there', true);\n    // => \"Hello There\"\n\n### lingo.camelcase()\n\nCamelcase a string:\n\n    lingo.camelcase('foo bar');\n    // => \"fooBar\"\n\nCamelcase with first character upppercase:\n\n    lingo.camelcase('foo bar baz', true);\n    // => \"FooBarBaz\"\n\n## lingo.join()\n\nDefaults to \"and\":\n\n    lingo.join(['fruits', 'veggies', 'sugar']);\n    // => \"fruits, veggies and sugar\"\n\nSupplying \"or\":\n\n    lingo.join(['fruits', 'veggies', 'sugar'], 'or');\n    // => \"fruits, veggies or sugar\"\n\n## i18n (translations)\n\nNew languages can be defined as shown below:\n\n    var Language = require('lingo').Language\n      , fr = new Language('fr');\n\n    fr.translations = {\n      'Welcome {name}': 'Bonjour {name}'\n    };\n\nThe language code passed to `Language()` self-registers itself, so you could grab the implementation via:\n\n    var fr = require('lingo').fr;\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2010 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_attachments":{}}