L
LLLOS.ai
Career
L
◆ AI Learning · Situational

How should I format word lists for highlighting in sentences?

An array of words for highlighting must contain only plain words. Do not include extra information like role labels in parentheses. The system looks for exact word matches in the sentence.

By Pawan Nayar · from the LLOS AI Learning record

The rule

An array of words for highlighting must contain only plain words.

Do not include extra information like role labels in parentheses. The system looks for exact word matches in the sentence.

The system highlights words in a sentence. It uses a list of words to find matches. Each word in the list must exactly match a word in the sentence. If the list includes extra text, like words in parentheses, the system will not find a match. This means the word will not be highlighted. Tooltips will also not appear.

A developer creates a lesson. The lesson has a sentence: 'The student learns quickly.' The developer wants to highlight 'learns'. If the developer lists the word as 'learns (verb)', the system will not find 'learns (verb)' in the sentence. The word 'learns' will not be highlighted. If the developer lists the word as 'learns', the system will highlight it correctly.

Words you'll need

Resolved from this lesson's own record — real definitions, not invented for this page.

Tokenization

Splitting text into tokens (often subword pieces) for model processing

Pattern Recognition

Finding repeating structures in data

Information Retrieval

Finding the right information when you ask for it

Natural Language Processing

AI understanding and generating human language

Questions people ask

More from the same record, pulled by shared topic — not written new for this page.

How should a developer manage content within a fixed-size card?

A card must never change its size. The content inside the card must fit the card.

How should a developer design a card component to ensure it always looks good and fits its content?

A developer should list all elements that will be inside the card. The developer must find the longest possible text for each element from real data.

How can a developer build a mobile view for a web application without breaking the desktop view?

A developer must treat mobile and desktop as two separate apps. They should use media queries to define distinct CSS layouts for each.

How should an introductory screen be removed after its animation finishes?

An introductory screen should be completely removed from the active layout. This means using a method like `display: none` in web development.

What to remember

An array of words for highlighting must contain only plain words. Do not include extra information like role labels in parentheses. The system looks for exact word matches in the sentence.