NSLinguisticTagger detects Vietnamese as Romanian

Originator:futuretap
Number:rdar://35888093 Date Originated:06-Dez.-2017 09:05 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.2
Classification:Other Bug Reproducible:Always
 
Summary:
The NSLinguisticTagger dominantLanguage API detects Vietnamese text as Romanian.

Steps to Reproduce:
	NSLinguisticTagger *tagger = [[NSLinguisticTagger alloc] initWithTagSchemes:tagschemes options:0];
	tagger.string = @"Thức ăn ngon, giá cả phải chăng. Tìm chổ đậu xe khó khăn nhưng chịu khó cũng có chổ ok.";
	NSLog("language: %@", tagger.dominantLanguage);

Expected Results:
it should log "vi"

Actual Results:
it logs "ro"

Version:
11.2

Notes:

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!