The PlainWords
method on a Page
object calls the [Plain
] method, then uses Go’s [strings.Fields
] function to split the result into words.
As a result, elements within the slice may contain leading or trailing punctuation.
{{ .PlainWords }}
To determine the approximate number of unique words on a page:
{{ .PlainWords | uniq }} → 42