Cognitive Infocommunications (CogInfoCom) involves communication, especially the combination of informatics and telecommunications. In the future, infocommunication is expected to become more intelligent and supportive of life. Privacy is one of the most critical concernsin infocommunications. A well-recognized technology that ensures privacy is encryption; however, it is not easy to hide personal information completely. One technique to protect privacy is to find confidential words in a file or a website and change them into meaningless words. In this paper, we use a judicial precedent dataset from Japan to discuss a recognition technique for confidential words using neural networks. The disclosure of judicial precedents is essential, but only some selected precedents are available for public viewing in Japan. One reason for this is the concern for privacy. Japanese values do not allow the disclosure of the individual's name and address present in the judicial precedents dataset. However, confidential words, such as personal names, corporate names, and place names, in the judicial precedents dataset are converted into other words. This conversion is done manually because the meanings and contexts of sentences need to be considered, which cannot be done automatically. Also, it is not easy to construct a comprehensive dictionary for detecting confidential words. Therefore, we need to realize an automatic technology that would not depend on a dictionary of proper nouns to ensure that the confidentiality requirements of the judicial precedents are not compromised. In this paper, we propose two models that predict confidential words by using neural networks. We use long short-term memory (LSTM) and continuous bag-ofwords (CBOW) as our language models. Firstly, we explain the possibility of detecting the words surrounding an confidential word by using CBOW.