To make this more general (see below), this could be changed to the following:

```js
/**
 * Determine if two strings are like one another, based on simple pattern matching.
 * @param {string} first The first string.
 * @param {string} second The second string (to be compared to the first).
```