Well I'm still at beginner stage of Polish language skills (and my lack of). Please give hints, for example is wj at the start of the word you're referring to? (I'm pretty sure wj is never at the very end of any Polish word) Is the word a noun, adjective, infinitive, participle etc? If noun, then is it considered a proper noun (having first letter capitalized at all times)? Is the letter w used as a prefix? Or letter j at the beginning of a suffix? Etc
But some accented consonants can be right before -ż suffix (specifically, certain participles + -ż suffix. For example, "idźż")
Oops my bad, I actually meant -że suffix, I mistakenly said -ż suffix. (So the correct example is "idźże", and not "idźż")
And so, certain participles ending with ć, cz, dź, dż, rz, ś, sz, ź, and ż can all be suffixed with -że (But I think only one verb tense uses the -że suffix. So for example, only the verb tense "idź" can be suffixed)