spacemacs
spacemacs copied to clipboard
Spacemacs-based LaTeX document preparation environment with the coding/command completion and human text writing suggestion at the same time.
On Ubuntu 20.04, I'm using the self-compiled git master version of Emacs and noticed the company-wordfreq.el project which can be used as a human language texts helper based on word frequency dictionaries. Currently, this package is not included in spacemacs. I want to know if I can have a spacemacs-based LaTeX document preparation environment which has the coding/command completion and human text writing suggestion based on the above-mentioned project at the same time.
I've tried some configurations with vanilla Emacs as discussed here, but sill can't figure out the full working configuration.
Any hints will be highly appreciated.
Regards, HY
Send PR if you can. I doubt it's ever useful to sort completions barely according to word frequency.
I haven't figured out how to get them to work together yet. What do you think should be the useful completion technique for human text writing?
Word frequency ignores the contextual information. A useful completion should be based on the context, just like how any other completion works in programming language.
Modern, large scale English word frequency list was first available in 1940s.
Counting the occurrences of word in text corpus at least goes back to Hellenistic period.
Any naive implementation of completion based on word frequency is basically using an ancient technique invented before 0 AD.
According to my experience, the Gmail web client has the feature of the phrase-and-sentence-based semantic completion to some extent.
That's different from the naive word-frequency based completion.
Yes. It's based on AI. Another possible alternative is to call LanguageTool from within Emacs.
See https://github.com/syl20bnr/spacemacs/blob/develop/layers/+tools/languagetool/README.org
I tried the company-mode backend for TabNine. It looks great in a way, as shown below:
See here for the corresponding configuration.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!