# interfaceNamesMatch

Canonical: https://docs.shumoku.dev/en/library/api/interfaceNamesMatch
Language: en

@shumoku/core · 0.4.0 · function

# interfaceNamesMatch

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/interface-name.ts#L143)

Whether two interface names denote the same physical port. Same canonical prefix with aligning numbers (score ≥ 0.5), OR — for cross-vocabulary cases like TTDB's speed-code \`hg\` vs Juniper \`et-\` where prefixes differ but the port number is identical — the full number sequence matches.

```
interfaceNamesMatch(a: string, b: string): boolean
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `a` | `string` | No additional description. | `—` |
| `b` | `string` | No additional description. | `—` |

## Returns

```
boolean
```

[`libs/@shumoku/core/src/observation/interface-name.ts:143`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/interface-name.ts#L143)
