Apple Natural Language & Text Detection

0•

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.

Key Features

01Semantic data extraction for URLs, phone numbers, addresses, and dates
02Linguistic tagging for part-of-speech, lemmas, and named entity recognition
03Language-aware tokenization and segmentation for complex scripts
04Word and sentence embeddings for semantic similarity comparisons
05Language identification with probability distribution and hypotheses
060 GitHub stars

Use Cases

01Building intelligent text editors that automatically identify and link contact information
02Integrating custom-trained Create ML text classification models into iOS applications
03Implementing multilingual search systems using native tokenizers and language detection