https://github.com/neonarray/title-case
A small module to format a string into title case.
https://github.com/neonarray/title-case
Last synced: about 1 year ago
JSON representation
A small module to format a string into title case.
- Host: GitHub
- URL: https://github.com/neonarray/title-case
- Owner: NeonArray
- Created: 2019-06-03T23:29:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-23T15:00:22.000Z (over 4 years ago)
- Last Synced: 2025-03-25T04:14:55.436Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Title Case
### This module is in development and will not work as you expect.
*Goal*:
A small module to format a string into title case.
*Using the Guideline*:
""The Quick Brown Fox Jumps over the Lazy Dog""
"A mixed-case style with all words capitalised, except for certain subsets (particularly articles and short prepositions and conjunctions) defined by rules that are not universally standardised. The standardisation is only at the level of house styles and individual style manuals. (See further explanation below at § Headings and publication titles.) In text processing, title case usually involves the capitalisation of all words irrespective of their part of speech. This simplified variant of title case is also known as start case or initial caps."
- [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Title_Case)
---
To remind myself where I left off...
- Test a preposition when it is encountered to determine the context. If it is used alone, next to other verbs, then it is OK. If it is used next to conjunctions, they both need to be lowercase.
- If a preposition is preceeded by a semi-colon, capitalize it.
- Include options to select the academia style (AP/ec) and incorporate rules respectively.