Device vs. Simulator Linguistic Schemes
After tireless research, sleepless nights, and three trips to the ward, I found out the problem. While the fix was by all means the poor man's solution, it worked nonetheless.
For whatever reason my iPhone 6s iOS 11.2.5 didn't feel like installing all of the available linguistic schemes when I originally set up my phone? Either that or it decided to remove them one day when it was bored.
Regardless, the solution was... drum roll...
Uninstall the target language...then reinstall it.
I guess this "reset" the language package to re-include these schemes. Happy codinggg
The WWDC presentation covering this topic shows that far from all languages are supported for all schemes. In fact, several schemes are only supported for the following languages:
- English
- French
- Italian
- German
- Portuguese
- Russian
- Turkish
If you download the slides on the linked page below you can see a table of this on slide 136.
When I run your code on my devices they all report the full set that you got on the simulator for en
. With other language codes I get less. Did you check your iOS versions on your devices vs simulator?
WWDC 2017:208 - Natural Language Processing and your Apps