Crate text_analysis

source ·

Functions§

  • Takes &Vec and counts the quantity of each word. Returns Hashmap<String,u32>, with String being the word and u32 the quantity
  • Get maximum index and garantee that index does not exeed total length of Vec
  • Get mininum index and guarantee that index is alway >=0
  • save file to path. Return result.
  • Sort words in HashMap<Word, Frequency> according to frequency into Vec<String, u32>.
  • Splits String into single words as Vector. Splits String at whitespaces and removes chars like , or ?. Change the relevant line to remove or add chars from provided String.