words

package
v0.0.0-...-a30bc99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package words provides convenience methods for dealing with words and phrases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapitalizeFirst

func CapitalizeFirst(phrase string) string

CapitalizeFirst capitalizes the first letter of the string

func CombinePhrases

func CombinePhrases(phrases []string) string

CombinePhrases combines phrases with "and" and commas

func NumberToWord

func NumberToWord(number int) string

NumberToWord returns the word version of a number

func Pronoun

func Pronoun(word string) string

Pronoun returns the right singular pronoun based on starting letter of a word

func Title

func Title(phrase string) string

Title returns the title-case version of the string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL