inukshuk / citeproc-ruby

A Citation Style Language (CSL) Cite Processor
101 stars 22 forks source link

Additional stopwords #22

Closed smoyte closed 10 years ago

smoyte commented 10 years ago

https://github.com/citation-style-language/documentation/blob/master/specification.txt says that words like 'a', 'and', 'the', 'nor', etc. should be stopwords for title case capitalization. Some of those given in the spec were missing from citeproc-ruby.

This was causing invalid capitalization for styles (like MLA) that use title case, e.g. Declaration on Democracy, Political, Economic And Corporate Governance. Clearly 'and' should not be capitalized here.

I have added them. I also changed to the terser %w array init syntax.

Thanks for considering!

inukshuk commented 10 years ago

From the diff it looks like there is an extra closing brace? Otherwise, looks good to me, thanks for contributing!

smoyte commented 10 years ago

Yeah oops. Let me do another one.