Say I have an expression I often use so I build a command shortcut to typeset it:
\documentclass[11pt]{report}
\usepackage{xparse}
\ProvideDocumentCommand \es{s}{expression shortcut\IfBooleanTF{#1}{s}{}}
\begin{document}
This is a \es and These are \es*.
\end{document}

Can I avoid the manual addition of tilde (~) when the call is made within a sentence? In other words, is there a way to detect (using xparse or not) when Latex shouldn't "eat" the following white space?
\xspacefrom the eponymous package? – Paul Gessler Mar 25 '15 at 12:35xspace. Thanks. – nadous Mar 29 '15 at 10:43