followsAsVerbStem関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { followsAsVerbStem } from "@johnmorrisdotca/hikidashi/deinflect";
ほかのエクスポート元: @johnmorrisdotca/hikidashi
定義
function followsAsVerbStem(following: string): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
following | string | The text right after a word, as much of it as you have. |
戻り値
boolean
True when it opens with one of those endings; false otherwise, including for an empty string.
例
import { followsAsVerbStem } from "@johnmorrisdotca/hikidashi/deinflect";
console.log(followsAsVerbStem("ます。"), followsAsVerbStem("たいです"), followsAsVerbStem("の電車"), followsAsVerbStem(""));true true false false出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。