# Function matchesMep

- matchesMep(candidate: string | null | undefined, mepTokens: string[]): boolean
  `Internal`

  Tolerant author/MEP match.

  Returns `true` when any normalised token from `mepId` matches the candidate exactly, or when the candidate contains a normalised token as a substring (case-insensitive). Empty / undefined candidates never match.

  #### Parameters

  - candidate: string | null | undefined
  - mepTokens: string[]

  #### Returns boolean

  - Defined in utils/effectivenessAggregator.ts:120