Is there any indication in the Bible (N.T. is preferred) that the spirit of man can be discerned properly from the words that he is speaking? And is there any indication of the opposite - that the spirit of man can be easily discerned without listening to his words?
From the words that he is speaking: By the Emotion and Attitude used when speaking There are two forms of Discernment. The first is the Discernment of (Good, Right, Function) and (Evil, Wrong, Dysfunction). This first type of Discernment is called Wisdom. So a definition one could give to the word [Wisdom] is "The ability to see the answer to the problem."
To Make One Wise
The second is the Discernment of the Spirit. The spirit can be read by the the display of ones attitude and emotion. The spirit develops by faith that things of function or dysfunction are in God's plan, therefore wisdom is not necessary. For what need is their to determine of a situation in its dysfunction. If indeed that situation fulfills a function? Or alternately if a situation fulfills a function, trusting in that functionality, when other functions can be used to fulfill the same purpose? Therefore since the one who is in the faith does not eat of the fruits of the knowledge of good and evil. The Holy First Law of simplicity is completely fulfilled.
What then is the display of those not eating the fruits of the knowledge of good and evil?
What then is the display of those eating the fruits of the knowledge of good and evil?
Therefore by the Emotion and Attitude used when speaking, one can determine ones spirit.
Without listening to his words: By if one hears the truth
The one in error has the focus on both Now and also the Imagination
We know that "out of the abundance of the heart, the mouth speaks".
However, being able to entirely determine the state of someone's soul via their words is a talent not entrusted to [most] people (the exceptions being accounted-for in the Bible with the Apostles).
A period of witnessing all of the components of a person's life - words, actions, approaches to living, etc - would be needed to make a credible decision as to whether or not they are saved. As a Christian, it should be our goal to become more and more like Christ every day, and part of that IS with our words - "Let no unwholesome word proceed from your mouth, but only such a word as is good for edification according to the need of the moment, so that it will give grace to those who hear."
Indeed, this practice is followed by many churches when they have a waiting period between when salvation is professed, and when the believer is baptized.
However, even knowing all of that, we are still fallible humans, and there will be "Many will say to Me on that day, 'Lord, Lord, did we not prophesy in Your name, and in Your name cast out demons, and in Your name perform many [a]miracles?'"
Ultimately, it is only God Himself who fully knows the heart.