Use function `sentence-end' instead of variable `sentence-end'.
Attach a file by drag & drop or click to upload