Bug 151914 - Allow to add / edit words with tags in custom dictionaries
Summary: Allow to add / edit words with tags in custom dictionaries
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
: 157449 (view as bug list)
Depends on:
Blocks: Spell-Checking Dictionaries
  Show dependency treegraph
 
Reported: 2022-11-05 03:34 UTC by Shantanu
Modified: 2023-10-10 13:18 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shantanu 2022-11-05 03:34:53 UTC
Description:
I can right click and add a word to custom dictionary. But tags are not allowed.


Steps to Reproduce:
1) Type Anna and spell check using English USA dictionary. There is no mistake. 
2) Type Anna's and there is no mistake either. 
3) Type Annas and it is considered incorrect. I can right click and add it custom dictionary. ""But tags are not allowed.""

Actual Results:
Word Annas is considered incorrect.

Expected Results:
Word Annas should be considered correct if I add Anna/MS in custom dict.


Reproducible: Always


User Profile Reset: No

Additional Info:
Let's assume this word is already there in the dict file.
Anna/M

I will like to change the entry to this:
Anna/MS

I should be able to add this new entry in custom dictionary "with tags" that will overwrite the current word (if already present).
Comment 1 Rafael Lima 2022-11-05 20:20:23 UTC
In other words, you would like to edit the "raw" dictionary info related to the word?
Comment 2 Shantanu 2022-11-06 05:29:53 UTC
Yes. I am looking for a way to edit raw dictionary. This will be useful for non-english languages where not all words are added or their tags are wrong. In case of Asian Languages a single tag can replace hundreds of words in my custom dictionary.
Comment 3 Heiko Tietze 2022-11-09 10:06:14 UTC
The request to manipulate user dictionaries makes sense. I'd expect edit, delete, import, export functions. However, experienced users can access the dictionary at <.config>/libreoffice/4/user/wordbook. And ultimately kind of duplicate to bug 151625.

Regarding "tags" I don't know what this exactly means (guess some markup language) and whether we support this (the dictionary is plain text). => needsDevEval
Comment 4 Shantanu 2022-11-10 04:48:26 UTC
The dictionary is not just a list of words saved in a text file. Most of the words are followed by slash / and then a tag. For e.g. party/S would produce: parties, boy/S would produce: boys etc. You can read more about it here...

https://tinyurl.com/mr298phy

You can add words like "party" or "boy" in custom dictionary. But not with tags like "party/S". You can however add "party" AND "parties". But in case of non-english languages there are hundreds of words those are generated using tags. It is very difficult to add all of them in custom dictionary (that has a limit of 30000 words).
Comment 5 sophie 2022-11-10 13:46:11 UTC
I guess this is why the directory is called wordbook and not dictionary, it's only a collection of word with no suffix or prefix. This would be an interesting addition :)
Comment 6 Stéphane Guillou (stragu) 2023-10-10 13:18:22 UTC
*** Bug 157449 has been marked as a duplicate of this bug. ***