Wordsmith is a blazing fast, multi-byte safe, one-stop text manipulation toolkit for Craft CMS.

Wordsmith brings dozens of powerful features into your Twig templates:

  • Trim and truncate text or HTML (by paragraph, word, or character)
  • Beautify your typography (smart quotes, widow-prevention, ampersand styling, etc.)
  • Change case and inflection
  • Transliterate international text
  • Search, count, isolate, and replace substrings
  • Parse Emoji, using standard and short names
  • Parse Markdown, in several flavors (including Parsedown)
  • Parse names to get their parts (e.g. first name, last name, etc.)
  • Parse a URL to get its parts (e.g. host name, path, query string, fragment, etc.)
  • Get YouTube video ID from a URL
  • Match and re-case Roman numerals
  • Calculate text statistics like word count, sentence count, and readability
  • Tell whether a variable value is string-like
  • ...and much more...

Wordsmith will work as a backwards-compatible drop-in replacement for several Craft 2 plugins, including: Typogrify, Entitle, Hacksaw, ReadTime, Inflect, and Parsedown

Finally, Wordsmith provides a clean, well-documented, Stringy-compatible service API, so you can easily use all of Wordsmith's methods and libraries in your own plugins and packages.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
8,231
Version
4.4.0
License
Craft
Compatibility
Craft 3, Craft 4
Last release
December 21, 2023
Activity (30 days)
0
Closed Issues
1
Open Issues
0
Merged PRs
0
Open PRs