PersonNameComponentsFormatter should infer nick name from input string

Originator:jalkut
Number:rdar://28877545 Date Originated:20-Oct-2016 05:21 PM
Status:Open Resolved:
Product:macOS SDK Product Version:Xcode 8.1 beta (8T47)
Classification:UI/Usability Reproducible:Always
 
Summary:
I was impressed by PersonNameComponentsFormatter but surprised that it can't, apparently, be persuaded to consider any parenthetical mention of an alternate name as meaning a "nickname" for the person.

Steps to Reproduce:
1. Create a new iOS playground
2. Paste in:

import Foundation

let nameFormatter = PersonNameComponentsFormatter()

let nameComponents = nameFormatter.personNameComponents(from: "Daniel \"Punkass\" (Punkass) Craig Jalkut (Punkass)")
nameComponents?.nickname


Expected Results:
One or more of the three efforts to identify a nickname "Punkass" should work:

1. Listing the nickname in quotes immediately after the given name
2. Listing the nickname in parens immediately after the given name
3. Listing the nickname in parens immediately after the full name.


Actual Results:
nameComponents.nickname is always nil

Version:
Version 8.1 beta (8T47)

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!