natural-language

Analyze and translate text with Apple's NaturalLanguage and Translation frameworks.

981|50|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill natural-language-dpearson2699
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: natural-language
Source: https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/natural-language
Command: npx skills add https://github.com/dpearson2699/swift-ios-skills --skill natural-language-dpearson2699

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers you to understand and process natural language text, enabling features like sentiment analysis, entity recognition, and seamless in-app translation for your users.

Core Features & Use Cases

  • Text Analysis: Tokenize, identify parts of speech, recognize named entities (people, places, organizations), and gauge sentiment.
  • Language Identification: Automatically detect the language of any given text.
  • Text Embeddings: Measure semantic similarity between words and sentences.
  • Translation: Translate text between various languages directly within your app.
  • Use Case: Analyze customer feedback to identify common themes and sentiment, or integrate real-time translation for a global user base.

Quick Start

Use the natural-language skill to identify the dominant language of the text "This is a sample sentence.".

Frequently Asked Questions about natural-language

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

FAQPage Schema
How do I perform sentiment analysis and named entity recognition in my iOS app?

Sentiment analysis and named entity recognition are performed on-device using Apple's NaturalLanguage framework. The Skill tokenizes text, identifies parts of speech, recognizes people or organizations, and gauges sentiment directly within Swift applications.

What is the best way to translate text between languages natively in Swift?

Natively translating text in Swift is handled by Apple's Translation framework, enabling in-app translation for iOS, macOS, and visionOS. It translates text between various languages directly without requiring external network calls.

Can I measure semantic similarity between sentences using on-device natural language processing?

Measuring semantic similarity between words and sentences uses text embeddings via on-device natural language processing. Apple's NaturalLanguage framework calculates these embeddings to determine contextual closeness locally.

Does this natural language processing Skill require Swift 6.2 or later?

On-device natural language processing and translation requires Swift 6.2 or later. It targets iOS, macOS, and visionOS applications using Apple's NaturalLanguage and Translation frameworks without external dependencies.

How do I automatically identify the language of user input text in an iOS app?

Language identification automatically detects the dominant language of any given text input in an iOS app. This feature uses Apple's NaturalLanguage framework to analyze text strings and return the detected locale natively.