# stringCountMinSketch

> **stringCountMinSketch**(`options?`): [`StringCountMinSketch`](/reference/knotkit/scalar-sketch/interfaces/stringcountminsketch/)

Defined in: [packages/scalar-sketch/src/count-min-sketch.ts:106](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/scalar-sketch/src/count-min-sketch.ts#L106)

Create a string-specialized Count-Min sketch.

## Parameters

### options?

[`CountMinSketchOptions`](/reference/knotkit/scalar-sketch/interfaces/countminsketchoptions/) = `{}`

## Returns

[`StringCountMinSketch`](/reference/knotkit/scalar-sketch/interfaces/stringcountminsketch/)

## Throws

With `INVALID_PROBABILITY`, `INVALID_DIMENSION`, or `STATE_TOO_LARGE` for invalid options.

## Throws

From `knotkit/hash` for an invalid seed.
