Documentation ¶ Index ¶ func TextScore(input []byte, depth int) float64 Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func TextScore ¶ func TextScore(input []byte, depth int) float64 TextScore attempts to score how 'English text'-like some input is. nothing too fancy, we're using {mono,bi,tri}-gram frequency and common word count. depth 1 - mono-gram, 2 - {mono,bi}-gram, 3 - {mono,bi,tri}-gram, >=4 - {mono,bi,tri}-gram Types ¶ This section is empty. Source Files ¶ View all Source files ngrams.go Click to show internal directories. Click to hide internal directories.