Closed
Description
Description
This RFC proposes adding support for converting a string to "sticky caps" case (also known as "studly case" or sponge case), where capitalization is random.
E.g.,
stickycase( 'foo bar' );
// returns 'fOo bAR'
Package: @stdlib/string/base/stickycase
Alias: stickycase
Related Issues
None.
Questions
- We should use
@stdlib/random/base/bernoulli
. We could consider supporting ap
(probability) parameter in which randomness of capitalization is controlled by a specified probability. - Should this package be named differently? (e.g.,
spongecase
?)
Other
See @stdlib/string/base/constantcase
for a similar package.
Checklist
- I have read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
- The issue name begins with
RFC:
.
Metadata
Metadata
Assignees
Labels
Issue or pull request for adding a new feature.A good first issue for new contributors!Issue involves or relates to JavaScript.Needs further discussion.Request for comments. Feature requests and proposed changes.Issue or pull request concerning general utilities.May require some initial design or R&D, but should be straightforward to resolve and/or implement.Low priority concern or feature request.