Obtaining feedback from supervisors
Well, the notion of locality depends on context. Usually in the context of QFT, a local function means a function of the form $$ f(\varphi(x), \partial\varphi(x), \partial^2\varphi(x), \ldots,\partial^N\varphi(x) ;x), $$ where $N\in\mathbb{N}_0$ is some finite order. (If $N=0$ then the function $f$ is called ultra-local.) See also this and this Phys.SE posts.
Concretely, in the mentioned place almost at the end of chapter 3 in Srednicki's book, the phrase
any local function of $\varphi(x)$
is used (in a non-standard way) to denote
any function of the form $f(\varphi(x))$,
as opposed to, e.g.,
functions of the form $f(\varphi(x),x)$ with explicit $x$-dependence, which may not be a Lorentz scalar,
functions of the form $f(\partial\varphi(x))$, which may not be a Lorentz scalar,
bi-local functions $f(\varphi(x), \varphi(y))$,
functionals $F[\varphi]$,
etc.
There is no way to do that unless you can monitor the installed programs on your users´ PCs with a software like EMCO Software scanner.
This might be a correct version of the Nomenclature.engine
file:
#! /bin/bash
PATH=/usr/texbin:/usr/local/bin:${PATH}
bfname=${1%\.*}
makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls
In my tests it does the required call.