[lkb] single-quotes in lexicon entries
Stephan Oepen
oe at ifi.uio.no
Tue Aug 5 12:43:28 CEST 2008
hi mike, apologies for a tardy follow-up!
> lunghezza_d'onda_3 := sg-fem-common-noun-lex &
> [ STEM < "lunghezza", "d'onda" >,
> SYNSEM.LKEYS.KEYREL.PRED "_lunghezza+d'onda_n_3_rel" ].
>
> Since single-quotes are meaningful characters in Lisp, I imagine they
> must be replaced with something else.
well, yes and no. the syntax of TDL is the constraining factor here,
not Lisp, strictly speaking. but the single quote is a TDL operator,
so |lunghezza_d'onda_3| is not a valid identifier (using the pipes as
a kind of `quote mark' here). |"_lunghezza+d'onda_n_3_rel"|, on the
other hand, is a valid TDL string, hence for the PRED value you could
actually go with that. which might be nice, as we usually expect the
PRED to reflect the citation form (in `common' orthography). as for
the identifier (of the lexical entry, in this case), there are a few
more characters, besides |+|, that are available for TDL identifiers,
e.g. |-|, |_|, or |*|. these identifiers are fully grammar-internal,
so you should be free to invent a convention that makes sense here.
all best - oe
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++ Universitetet i Oslo (IFI); Boks 1080 Blindern; 0316 Oslo; (+47) 2284 0125
+++ CSLI Stanford; Ventura Hall; Stanford, CA 94305; (+1 650) 723 0515
+++ --- oe at ifi.uio.no; oe at csli.stanford.edu; stephan at oepen.net ---
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
More information about the lkb
mailing list