# Function extractTextFromLangArray

- extractTextFromLangArray(items: unknown[]): string

  Extracts preferred-language text from an array of language-tagged objects. Prefers English (`en`) or multilingual (`mul`).

  EP API sometimes returns plain string arrays (e.g. URI references in `isAboutSubjectMatter`). When the array contains only plain strings, they are joined with `,` .

  #### Parameters

  - items: unknown[]

    Array of JSON-LD language-tagged objects or plain strings

  #### Returns string

  Text in preferred language, or first available

  - Defined in clients/ep/jsonLdHelpers.ts:115