Apple Natural Language & Text Detection
Analyzes Apple platform text using Foundation and NaturalLanguage frameworks for semantic data extraction, linguistic tagging, and embedding analysis.
This skill provides specialized guidance for Apple's text-processing stack, focusing on Foundation and NaturalLanguage frameworks for iOS and macOS development. It covers a wide range of tasks including semantic data extraction (links, phone numbers, dates) via NSDataDetector, linguistic analysis (part-of-speech, named entities) using NLTagger, and advanced NLP operations like language identification and semantic embeddings. Crucially, it provides implementation patterns for the often-error-prone bridging between Swift String indexes and Foundation NSRanges, ensuring accurate text manipulation across Apple's native APIs.