Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/mod.ts>_getWordCount

The modular and type safe schema library for validating structural data 🤖
Latest
function _getWordCount
Re-export
import { _getWordCount } from "https://deno.land/x/valibot@v1.0.0-beta.5/mod.ts";

Returns the word count of the input.

Parameters

locales: Intl.LocalesArgument

The locales to be used.

input: string

The input to be measured.

Returns

number

The word count.