To determine whether a token is a word, you have to write a function bool isWord(string token). If the giventoken is a word, then isWord should return “true”, otherwise it should return “false”. A similar function boolisNumber(string token) should also be written.Input format:The only input from keyboard is a string that gives the file name to the file storing an article. The file may haveblank lines. Hint: You can use getline(inFile, aLine); to get a line from the input file stream inFile. That is, wereplace cin with inFile.