UITextChecker fails to return correct set of word completions

Number:rdar://36689956 Date Originated:1/20/2018
Status: Resolved:
Product:UIKit Product Version:9.3
Classification:Bug Reproducible:Always
The completions() function on the UITextChecker class fails to return correct set of word completions.  For the partial word "Feb", the word February should be in the list.   This bug is NOT limited to just this one partial word.  There are thousands of missing words!!!

Steps to Reproduce:

1.  Create a XCode playground in Swift

import UIKit

let textChecker = UITextChecker()
let completions = textChecker.completions(forPartialWordRange: NSRange(location:0,length:3), in: "Feb", language: "en_US")

Expected Results:

Febrile, February

Actual Results:



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!