From 34f32661fd2b6baca1ce77f38798003bf187cffd Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 26 Feb 2016 13:58:06 -0500 Subject: [PATCH] Add comments --- punctuation.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/punctuation.go b/punctuation.go index 275329d..ae7ec36 100644 --- a/punctuation.go +++ b/punctuation.go @@ -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)