Sfoglia il codice sorgente

Add comments

master
Matt Baer 8 anni fa
parent
commit
34f32661fd
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      punctuation.go

+ 3
- 0
punctuation.go Vedi File

@@ -7,8 +7,11 @@ import (
"strings"
)

// valid characters to extract
const validPunc = ";:'\",!?.-()"

// Extract scans the given File and returns only typical punctuation used in
// prose.
func Extract(f *os.File) string {
var out string
in := bufio.NewScanner(f)


Caricamento…
Annulla
Salva