Tankōbon / shared/articles / moveArticleToEnd
Function: moveArticleToEnd()
moveArticleToEnd(
name,articles):string
Defined in: shared/articles.ts:44
name with its leading article moved to the end in parentheses, the remaining first letter upper-cased: Le vent du nord → Vent du nord (Le), L'été → Été (L'). The article is written as it was in the name. An article ending with an apostrophe (l', d') is attached to the next word; any other one must be followed by a space. The longest matching article wins. A name that is only an article, or that starts with none of articles, is returned unchanged.
Parameters
name
string
articles
readonly string[]
Returns
string