Component
ArticleEjector
Eject articles to replace the visible sentence with the remaining words and file the removed tokens in a tray. Restore sentence brings the original label back exactly as supplied.
Possible use
It could let a reviewer inspect how much connective furniture a handoff sentence carries, or let a presenter produce an article-free slide label for a linguistic exercise. Removing small words is not a communication strategy by itself.
Reasonable alternative
A reasonable local alternative is retaining the sentence or using a one-off text utility for analysis. A reusable ejector should not supervise the words that make a noun phrase readable.
01 / Preview
Try it yourself.
Visible label
The team prepared an ordinary handoff
Removed articles
Nothing has been ejected.
Mechanism
- 1
- Eject every a, an and the from the visible sentence.
- 2
- Inspect the actual tokens in the little archive tray.
- 3
- Restore the sentence when grammar has had enough.
02 / Usage
Put it somewhere.
example.tsxTSX
import { ArticleEjector } from "gra-ui";
import "gra-ui/styles.css";
export function ArticleFreeLabel() {
return <ArticleEjector label="The team prepared an ordinary handoff" />;
}03 / API
Small surface area.
PropTypeDescription
labelstringThe sentence whose English articles are separated from the visible copy.