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

x/valibot/src/index.ts>_getWordCount

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function _getWordCount
Re-export
import { _getWordCount } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/index.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.