capitalize

Purpose

Сonverts the first letter of each word of a string to capital case.

Syntax

capitalize($group)

Arguments

Requires a single argument of a string value.

Returned Value

A string where each word begins with a capital letter.

Examples

Dataset

XPDL-rule

Result

I like this book.

rule: r1

{

query: {phrase(lemma(pronoun), lemma(verb))}:1

result: Match = capitalize($1)

}

I Like

SHE LIKES THIS BOOK.

She Likes

he likes books.

He Likes

We LikE BooKs.

We Like