Title.Opts (Title v0.2.0) View Source

Defines the options used for capitalization. There are two options to alter the strategy:

  • :style - The capitalization style you want for your title. This library supports the following styles: :ap, :chicago, :ny_times, :wikipedia. The default is :ap.
  • :custom - A list of words for which you have determined your own casing style. The matching will happen on the lowercased version.

Link to this section Summary

Link to this section Types

Specs

t() :: %Title.Opts{custom: [String.t()], style: atom()}