To add a custom character to be considered as the word limit, choose LibreOfficeDev - PreferencesTools - Options - LibreOfficeDev Writer - General and add the character into the Additional separators field. By default, this field contains em dash (—) and en dash (–).