private static bool IsInvalidMatcher(string input, params char[] matchKanji) => (matchKanji.Length > 0 && !matchKanji.Any(KanjiChecker.IsKanji)) || (matchKanji.Length == 0 && KanaChecker.IsKana(input));
private static bool IsTrailingWithoutFinalKana(string input, bool isLeading) => !isLeading && !KanaChecker.IsKana(input[input.Length - 1]);
/// <summary> /// Test if input is kana. /// </summary> /// <param name="input">Input.</param> /// <returns>A value indicating whether input is kana.</returns> public static bool IsKana(string input) => KanaChecker.IsKana(input);
private static bool IsLeadingWithoutInitialKana(string input, bool isLeading) => isLeading && !KanaChecker.IsKana(input[0]);
/// <summary> /// Test if input is kana. /// </summary> /// <param name="input">Input.</param> /// <returns>A value indicating whether input is kana.</returns> public static bool IsKana(char input) => KanaChecker.IsKana(input);