func (t *Tokeniser) checkWord(word string) (int, bool) {
	currInput := t.Input[t.pos:]
	if !strings.HasPrefix(currInput, word) {
		return 0, false
	}
	return len(word), true
}
// checkWord checks if the given word is at the cursor of the input.
// returns the len of the word and true if the word is found.
checkWord checks if the given word is at the cursor of the input.
returns the len of the word and true if the word is found.
// checkWord checks if the given word is at the cursor of the input . // returns the len of the word and true if the word is found .
func (t *Tokeniser) checkWord(word string) (int, bool) {
	currInput := t.Input[t.pos:]
	if !strings.HasPrefix(currInput, word) {
		return 0, false
	}
	return len(word), true
}
func ( t * Tokeniser ) checkWord ( word string ) ( int , bool ) { currInput := t . Input [ t . pos : ] if ! strings . HasPrefix ( currInput , word ) { return 0 , false } return len ( word ) , true }
checkWord checks if the given word is at the cursor of the input.
checkWord checks if the given word is at the cursor of the input .