|
|
@@ -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) |
|
|
|