ToTitleCasePT: Convertion to title case with lower case for some classes of...

Description Usage Arguments Details Value

View source: R/helper.R

Description

In written Portuguese, when converting to title case, it is not usual to keep in title case some words, like prepositions, conjunctions, articles and some kinds of pronouns. This functions locates those cases and converts them to lower case.

Usage

1
ToTitleCasePT(string)

Arguments

string

vector of characters to be converted to title case but with connector words (one-word prepositions and conjunctions) and articles (both definite and indefinite) and some pronouns in lower case.

Details

The current list of words converted to lower case is:

The above list is far from complete or exaustive, mainly due to the absence of the accidental prepositions and conjuntions, which are words that are not originally prepositions or conjunctions, but can play those roles in some contexts, like, for instance segundo, which can mean either the numeral second or the prepositional expression acording to.

Value

vector of characters with the same dimension of string


jjesusfilho/JurisVis documentation built on Jan. 16, 2022, 9:20 a.m.