3 ms·
> The best thing to do is to define a "sentinel" to go at the start and end of a sentence. For example, a "$" sign, or a NUL byte. The $ sign would get in the
by beefhash 7y ago
> The best thing to do is to define a "sentinel" to go at the start and end of a sentence. For example, a "$" sign, or a NUL byte.
The $ sign would get in the way if people actually use it in conersation, and maybe other things don't like the NUL byte.
Maybe '\x1F' (ASCII Unit Separator) or '\x1E' (ASCII Record Separator) are better candidates?
- korpiq 7y agoOr just upper case first letter and full stop?
- dredmorbius 7y agoBecause, as Mr. Obvious notes, capitalisation and stops never appear elsewhere in sentences, etc., etc.
- jstanley 7y agoThe $ sign would only get in the way if used as a standalone word, but I agree. If the sentinel is ever encountered in actual content, it should be escaped somehow.