natural-language

Analyze and translate natural language text using Apple's NaturalLanguage and Translation frameworks.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill natural-language-dfly7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: natural-language
Source: https://github.com/DFly7/iOS-FastAPI-Supabase-AI/tree/main/.agents/skills/natural-language
Command: npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill natural-language-dfly7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Natural language processing and translation tasks are difficult to implement reliably on-device, requiring careful handling of tokenization, thread safety, model assets, and language availability to avoid crashes or incorrect results. This Skill provides clear patterns and guarded workflows for detecting language, tagging parts of speech, extracting named entities, scoring sentiment, producing embeddings, and translating text within iOS, macOS, and visionOS applications.

Core Features & Use Cases

  • Tokenization & Tagging: Word, sentence, and paragraph tokenization plus part-of-speech tagging for content analysis and UI highlighting.
  • Named Entity Recognition & Sentiment: Extract people, places, organizations and compute sentiment scores for moderation, summarization, or UX tailoring.
  • Embeddings & Similarity: Generate word and sentence embeddings for semantic search, recommendations, and clustering.
  • Translation: Present system translation UI or perform programmatic and batch translations with model availability checks for offline use.
  • Use Case: Integrate into a chat app to auto-detect language, surface named entities, compute sentiment for messages, and offer inline translation or similarity matching for replies.

Quick Start

Use the natural-language skill to detect language, extract named entities, compute sentiment scores, generate embeddings for similarity, or translate short text in an iOS app.

Frequently Asked Questions about natural-language

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform on-device named entity recognition and sentiment analysis in an iOS app?

To perform on-device named entity recognition and sentiment analysis in iOS, you use Apple's NaturalLanguage framework to extract people, places, and organizations while computing sentiment scores for moderation or UX tailoring. This Skill provides guarded workflows for thread-safe tagger usage and reliable results.

Can I generate word embeddings for semantic search on macOS without an internet connection?

Yes, you can generate word embeddings for semantic search on macOS offline. This Skill provides patterns for embedding-based similarity matching and clustering using Apple's NaturalLanguage framework, including optional model asset management for contextual embeddings.

What's the best way to translate text programmatically in visionOS with language availability checks?

The best way to translate text programmatically in visionOS is using Apple's Translation framework with explicit language availability checks for offline use. This Skill offers workflows for batch translations and UI-driven translation while handling model asset downloads safely.

How does tokenization and part-of-speech tagging work for content highlighting in Swift?

Tokenization and part-of-speech tagging work by breaking text into word, sentence, or paragraph tokens and assigning grammatical tags using the NaturalLanguage framework. This Skill enables content analysis and UI highlighting through thread-safe tokenizer usage.

Does this approach to natural language processing support Swift 6.3 and thread-safe tagger usage?

Yes, this approach to natural language processing satisfies technical requirements for Swift 6.3+ and ensures thread-safe tagger and tokenizer usage. It provides clear patterns to avoid crashes when detecting language or extracting entities across concurrent iOS, macOS, and visionOS applications.