Skip to main content
Latest
function fn.soundfold
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { soundfold } = fn;

Return the sound-folded equivalent of {word}. Uses the first language in 'spelllang' for the current window that supports soundfolding. 'spell' must be set. When no sound folding is possible the {word} is returned unmodified. This can be used for making spelling suggestions. Note that the method can be quite slow.

Can also be used as a method:

GetWord()->soundfold()

Parameters

denops: Denops
word: unknown

Returns

Promise<string>