src/objnam.c
; if you're trying to override an item class name, like you seem to be, obj_typename
is a good function to change; you'd probably also need to change xname
or xname_flags
(depending on what version of NetHack you're working from) because NetHack has quite a bit of code duplication