followsAsVerbStemfunction
Whether following opens with an ending that only a verb's stem takes (ます, ました, ません, ましょう, まして, たい,
なさい), so that the word before it is being written as a stem. A noun is never followed by ます: 行き before ます is
the verb 行く, and 行き before nothing is the noun "bound for".
Import it
import { followsAsVerbStem } from "@johnmorrisdotca/hikidashi/deinflect";
Also exported from: @johnmorrisdotca/hikidashi
Definition
function followsAsVerbStem(following: string): boolean
Parameters
| Name | Type | Description |
|---|---|---|
following | string | The text right after a word, as much of it as you have. |
Returns
boolean
True when it opens with one of those endings; false otherwise, including for an empty string.
Examples
import { followsAsVerbStem } from "@johnmorrisdotca/hikidashi/deinflect";
console.log(followsAsVerbStem("ます。"), followsAsVerbStem("たいです"), followsAsVerbStem("の電車"), followsAsVerbStem(""));true true false falseWhat it prints (run when this page was built)