# interfaceMatchScore

Canonical: https://docs.shumoku.dev/ja/library/api/interfaceMatchScore
Language: ja

@shumoku/core · 0.4.0 · function

# interfaceMatchScore

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

APIの説明は英語のcanonical sourceを表示しています。

Score how well two normalized interface names match (0–1): same canonical prefix, then port numbers compared right-to-left (rightmost = most specific).

```
interfaceMatchScore(a: NormalizedInterface, b: NormalizedInterface): number
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `a` | `NormalizedInterface` | 追加説明はありません。 | `—` |
| `b` | `NormalizedInterface` | 追加説明はありません。 | `—` |

## 戻り値

```
number
```

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