Skip to main content
Module

x/denops_std/function/mod.ts>soundfold

📚 Standard module for denops.vim
Go to Latest
function soundfold
import { soundfold } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

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>