/// <summary> /// Load the stopwords from the txt file /// </summary> internal static async Task <string[]> Load() { StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation; StorageFile file = await folder.GetFileAsync(FilePath.StopWords); List <string> stopwordlist = new List <string>(); var lines = await FileIO.ReadLinesAsync(file); foreach (string line in lines) { string stemmedStopword = Stemmer.Stem(line.Trim()); stopwordlist.Add(stemmedStopword); } stopwords = stopwordlist.ToArray(); return(stopwords); }