Textonyms: Difference between revisions

m
Swift - simplified code
m (Swift - simplified code)
Line 2,696:
let word = line.lowercased()
if let text = textString(word) {
ifdict[text, vardefault: words = dict[text] {].append(word)
words.append(word)
dict[text] = words
} else {
dict[text] = [word]
}
count += 1
}
1,777

edits