sentensize {wyz.code.rdoc}R Documentation

Create sentence

Description

Create a sentence from given content

Usage

sentensize(x_s, ..., punctuationCharacter_s_1 = ".")

Arguments

x_s

An unconstrained vector of string values

...

additional arguments (should be convertible to character type).

punctuationCharacter_s_1

the punctuation character to use to end the sentence.

Details

Collate all provided arguments, then normalize spaces.

Finally, ensure capitalization of first letter and final colon.

Value

A single string.

Note

There is no way to ask for a different final punctuation mark. If you need to do so, either create your own helper function or simply sub provided result.

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

Examples

sentensize('a quick brown FOX jumps\tover', 'the     lazy      dog')
#  "A quick brown FOX jumps over the lazy dog."

sentensize('a simple', '  question\t', punctuationCharacter_s_1 = '?')
#  "A simple question?"

[Package wyz.code.rdoc version 1.1.19 Index]