The present invention relates to
artificial intelligence technology, and discloses a text code detection and evaluation method, including: obtaining a text code to be evaluated, and verifying whether the text code to be evaluated meets preset criteria; when it meets the preset criteria,
parsing the text code to be evaluated using an
abstract syntax tree to obtain a
feature data set of the text code to be evaluated, and standardizing the
feature data set to obtain a standard specialized
feature data set; constructing a hyperplane according to the standardized feature
data set, classifying the feature
data set using the hyperplane, and verifying whether the text code to be evaluated is qualified according to the
classification result. In addition, the present invention also relates to
blockchain technology, and the text code to be evaluated and the feature
data set can be stored in the nodes of the
blockchain. The present invention also proposes a text code detection and evaluation device, an electronic device, and a storage medium. The present invention can improve the accuracy of product recommendations.