# Prose.StringMetric enum

Namespace: [Grasshopper2](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public enum Prose.StringMetric
```

Enumerates the possible string distance metrics.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Hammond | 0 | Hammond distance only counts the number of substitutions required to turn one string into another. Strings of different lengths are assumed to require substitutions to make them equally long. |
| Levenshtein | 1 | Levenshtein distance counts the number of substitutions, deletions or insertions required to turn one string into another. |
| Damerau | 2 | Damerau-Levenshtein distance counts the number of substitutions, deletions, insertions or transpositions required to turn one string into another. |
