“全国最小的山”走红仅0.6米高 这可真是一脚就能登顶了
百度 何鸿毅家族基金从2008年开始赞助赵广超和设计及文化研究工作室,支持了“我的家在紫禁城”系列图书及教育计划、“小小紫禁城”教育计划,2012年中央电视台《故宫100》大型纪录片中的动画创作,以及2015年出版的《紫禁城100》。Pluralize and singularize any word.
Installation
npm install pluralize --save
yarn add pluralize
bower install pluralize --save
Node
var?pluralize?=?
AMD
<script>
tag
Why?
This module uses a pre-defined list of rules, applied in order, to singularize or pluralize a given word. There are many cases where this is useful, such as any automation based on user input. For applications where the word(s) are known ahead of time, you can use a simple ternary (or function) which would be a much lighter alternative.
Usage
word: string
The word to pluralizecount: number
How many of the word existinclusive: boolean
Whether to prefix with the number (e.g. 3 ducks)
Examples:
?//=>?"tests"?//=>?"tests"?//=>?"test"?//=>?"tests"?//=>?"1?test"?//=>?"5?tests"?//=>?"2?蘋果"?//?Example?of?new?plural?rule:pluralize?//=>?"regexes"pluralizepluralize?//=>?"regexii"?//?Example?of?new?singular?rule:pluralize?//=>?"single"pluralizepluralize?//=>?"singular"?//?Example?of?new?irregular?rule,?e.g.?"I"?->?"we":pluralize?//=>?"irregulars"pluralizepluralize?//=>?"regular"?//?Example?of?uncountable?rule?(rules?without?singular/plural?in?context):pluralize?//=>?"papers"pluralizepluralize?//=>?"paper"?//?Example?of?asking?whether?a?word?looks?singular?or?plural:pluralize?//=>?falsepluralize?//=>?true
License
MIT