# Fuzzy Match

Conducts a fuzzy search to find a pattern within the input based on weighted criteria. For example, A search for `dpan` will match on `**D**on't **Pan**ic`. Fuzzy Match lives in the **Utils** category of the `fx` menu.

## Parameters

| Parameter                  | Type   | Required | Default | Description                                            |
| -------------------------- | ------ | -------- | ------- | ------------------------------------------------------ |
| Input                      | string | yes      | —       | Value to transform. Previous step output or a literal. |
| Search                     | string | no       | —       | Argument value for this operation.                     |
| Sequential bonus           | number | no       | `15`    | Numeric value. Default `15`.                           |
| Separator bonus            | number | no       | `30`    | Numeric value. Default `30`.                           |
| Camel bonus                | number | no       | `30`    | Numeric value. Default `30`.                           |
| First letter bonus         | number | no       | `15`    | Numeric value. Default `15`.                           |
| Leading letter penalty     | number | no       | `-5`    | Numeric value. Default `-5`.                           |
| Max leading letter penalty | number | no       | `-15`   | Numeric value. Default `-15`.                          |
| Unmatched letter penalty   | number | no       | `-1`    | Numeric value. Default `-1`.                           |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type   | Description                               |
| ------ | ----------------------------------------- |
| `html` | Result of the Fuzzy Match transformation. |

## Example

<details>
<summary>Run Fuzzy Match</summary>

Conducts a fuzzy search to find a pattern within the input based on weighted criteria. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Search**, **Sequential bonus**, **Separator bonus**, **Camel bonus**, **First letter bonus**, and other options and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
