Function jay_lib::fns::fn_str::check_word

source ·
pub fn check_word<S: ToString>(s: S) -> bool
Expand description

Check the string is or not English But, if it is a phrase. What to do? Example:

    use jay_lib::fns::fn_str;
    assert_eq!(false,fn_str::check_word(""));
    assert_eq!(false,fn_str::check_word("123 eng"));
    assert_eq!(false,fn_str::check_word("what is it"));
    assert_eq!(true,fn_str::check_word("hello"));
    assert_eq!(true,fn_str::check_word("It's"));