System
A system that uses natural language processing and a legal knowledge base to help users determine if their situations or events violate laws and provides legal advice addresses the challenges of legal knowledge gaps and information access.
Patent Information
- Application Number
- JP2024165135
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-25
- Filing Date
- 2024-09-24
- Publication Date
- 2025-04-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Individuals without legal knowledge face challenges in determining whether their situations or events violate civil or criminal laws, and in finding appropriate legal advice.
A system that allows users to input their situations or events into a chat interface, which uses natural language processing and a legal knowledge base to determine if the content violates any laws, provides tips on applicable laws, and guides users to consultation pages for lawyers.
Enables users to quickly and accurately determine if their actions violate the law, receive appropriate legal advice, and eliminates information gaps by providing equal access to legal information.
Smart Images

Figure 2025054271000001_ABST
Abstract
Description
[Technical Field]
[0001] The technology of the present disclosure relates to a system. [Background technology]
[0002] Patent document 1 discloses a persona chatbot control method performed by at least one processor, the method including the steps of receiving a user utterance, adding the user utterance to a prompt including an instruction sentence related to a description of the chatbot character, encoding the prompt, and inputting the encoded prompt into a language model to generate a chatbot utterance in response to the user utterance. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Publication No. 2022-180282 Summary of the Invention [Problem to be solved by the invention]
[0004] Currently, it is difficult for people with no legal knowledge to confirm whether their own situation or the events that have occurred violate the law. Furthermore, if a case does violate the law, it is difficult to obtain clues as to which law it falls under or how to prove it. Furthermore, it is difficult to find a suitable law firm. These problems create an information gap and raise the hurdles to accessing the law. [Means for solving the problem]
[0005] This invention provides a means for users to input their situation and the events that occurred into a chat and check whether they violate civil or criminal law. If the content input by the user violates civil or criminal law, it provides a means to respond with hints to prove which law it falls under. It also provides a means to direct users to the consultation page of a law firm specializing in that field. This allows even those without legal knowledge to use the law as an ally, and contributes to the creation of a society without digital divides. [Brief explanation of the drawings]
[0006] [Figure 1] 1 is a conceptual diagram showing an example of the configuration of a data processing system according to a first embodiment. [Figure 2] 1 is a conceptual diagram showing an example of main functions of a data processing device and a smart device according to a first embodiment. [Figure 3] FIG. 10 is a conceptual diagram showing an example of the configuration of a data processing system according to a second embodiment. [Figure 4] FIG. 10 is a conceptual diagram showing an example of main functions of a data processing device and smart glasses according to a second embodiment. [Figure 5] FIG. 10 is a conceptual diagram showing an example of the configuration of a data processing system according to a third embodiment. [Figure 6] FIG. 11 is a conceptual diagram showing an example of main functions of a data processing device and a headset-type terminal according to a third embodiment. [Figure 7] FIG. 10 is a conceptual diagram showing an example of the configuration of a data processing system according to a fourth embodiment. [Figure 8] FIG. 10 is a conceptual diagram showing an example of main functions of a data processing device and a robot according to a fourth embodiment. [Figure 9] 1 shows an emotion map onto which multiple emotions are mapped. [Figure 10] 1 shows an emotion map onto which multiple emotions are mapped. [Figure 11] FIG. 2 is a sequence diagram showing a flow of processing in the data processing system according to the first embodiment of the first form example. [Figure 12]FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in Application Example 1 of Embodiment 1. [Figure 13] FIG. 10 is a sequence diagram showing a processing flow of a data processing system in a second embodiment of the second form example. [Figure 14] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in Application Example 2 of Embodiment Example 2. [Figure 15] FIG. 10 is a sequence diagram showing the flow of processing in a data processing system according to a third embodiment of the third embodiment. [Figure 16] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in Application Example 3 of Embodiment 3. [Figure 17] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in the first embodiment of the first form example when an emotion engine is combined. [Figure 18] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in Application Example 1 of Form Example 1 when an emotion engine is combined. [Figure 19] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in the second embodiment of the second form example when an emotion engine is combined. [Figure 20] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in Application Example 2 of Form Example 2 when an emotion engine is combined. [Figure 21] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in the third embodiment of the third form example when an emotion engine is combined. [Figure 22] FIG. 10 is a sequence diagram showing the flow of processing in the data processing system in Application Example 3 of Form Example 3 when an emotion engine is combined. DETAILED DESCRIPTION OF THE INVENTION
[0007] An example of an embodiment of a system according to the technology of the present disclosure will be described below with reference to the accompanying drawings.
[0008] First, the terms used in the following description will be explained.
[0009] In the following embodiments, a coded processor (hereinafter simply referred to as a "processor") may be a single arithmetic device or a combination of multiple arithmetic devices. Furthermore, the processor may be a single type of arithmetic device or a combination of multiple types of arithmetic devices. Examples of arithmetic devices include a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a GPGPU (General-Purpose computing on Graphics Processing Units), an APU (Accelerated Processing Unit), or a TPU (TENSOR PROCESSING UNIT (registered trademark)).
[0010] In the following embodiments, a coded RAM (Random Access Memory) is a memory in which information is temporarily stored and is used as a working memory by a processor.
[0011] In the following embodiments, the coded storage is one or more non-volatile storage devices that store various programs, various parameters, etc. Examples of non-volatile storage devices include flash memory (SSD (Solid State Drive)), magnetic disks (e.g., hard disks), and magnetic tapes.
[0012] In the following embodiments, a communication I / F (Interface) with a symbol is an interface including a communication processor, an antenna, etc. The communication I / F controls communication between multiple computers. Examples of communication standards applied to the communication I / F include wireless communication standards including 5G (5th Generation Mobile Communication System), Wi-Fi (registered trademark), Bluetooth (registered trademark), etc.
[0013] In the following embodiments, "A and / or B" is synonymous with "at least one of A and B." In other words, "A and / or B" means that it may be only A, only B, or a combination of A and B. Furthermore, in this specification, the same concept as "A and / or B" is also applied when three or more things are expressed connected by "and / or."
[0014] [First embodiment]
[0015] FIG. 1 shows an example of the configuration of a data processing system 10 according to the first embodiment.
[0016] 1, a data processing system 10 includes a data processing device 12 and a smart device 14. An example of the data processing device 12 is a server.
[0017] The data processing device 12 includes a computer 22, a database 24, and a communication I / F 26. The computer 22 is an example of a "computer" according to the technology of the present disclosure. The computer 22 includes a processor 28, a RAM 30, and a storage 32. The processor 28, the RAM 30, and the storage 32 are connected to a bus 34. The database 24 and the communication I / F 26 are also connected to the bus 34. The communication I / F 26 is connected to a network 54. Examples of the network 54 include a WAN (Wide Area Network) and / or a LAN (Local Area Network).
[0018] The smart device 14 includes a computer 36, a reception device 38, an output device 40, a camera 42, and a communication I / F 44. The computer 36 includes a processor 46, a RAM 48, and a storage 50. The processor 46, the RAM 48, and the storage 50 are connected to a bus 52. The reception device 38, the output device 40, and the camera 42 are also connected to the bus 52.
[0019] The reception device 38 includes a touch panel 38A, a microphone 38B, and the like, and receives user input. The touch panel 38A detects contact with an indicator (for example, a pen or a finger) to receive user input by the touch of the indicator. The microphone 38B detects the user's voice to receive user input by voice. The control unit 46A transmits data indicating the user input received by the touch panel 38A and the microphone 38B to the data processing device 12. In the data processing device 12, the specific processing unit 290 acquires the data indicating the user input.
[0020] The output device 40 includes a display 40A and a speaker 40B, and presents data to the user 20 by outputting the data in a form of expression that the user 20 can perceive (for example, audio and / or text). The display 40A displays visible information such as text and images in accordance with instructions from the processor 46. The speaker 40B outputs audio in accordance with instructions from the processor 46. The camera 42 is a compact digital camera equipped with an optical system including a lens, aperture, and shutter, and an imaging element such as a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor.
[0021] The communication I / F 44 is connected to a network 54. The communication I / Fs 44 and 26 control the exchange of various information between the processor 46 and the processor 28 via the network 54.
[0022] FIG. 2 shows an example of the main functions of the data processing device 12 and the smart device 14.
[0023] 2, in the data processing device 12, a specific process is performed by the processor 28. A specific processing program 56 is stored in the storage 32. The specific processing program 56 is an example of a "program" according to the technology of the present disclosure. The processor 28 reads the specific processing program 56 from the storage 32 and executes the read specific processing program 56 on the RAM 30. The specific process is realized by the processor 28 operating as a specific processing unit 290 in accordance with the specific processing program 56 executed on the RAM 30.
[0024] The storage 32 stores a data generation model 58 and an emotion identification model 59. The data generation model 58 and the emotion identification model 59 are used by the identification processing unit 290.
[0025] In the smart device 14, the processor 46 performs the reception output process. The storage 50 stores a reception output program 60. The reception output program 60 is used in conjunction with the specific processing program 56 by the data processing system 10. The processor 46 reads the reception output program 60 from the storage 50 and executes the read reception output program 60 on the RAM 48. The reception output process is realized by the processor 46 operating as the control unit 46A in accordance with the reception output program 60 executed on the RAM 48.
[0026] Next, the specific processing by the specific processing unit 290 of the data processing device 12 will be described.
[0027] "Example 1"
[0028] The system of the present invention provides a means for users to input their own situations and events into the chat. Specifically, a chat box is provided as a user interface, allowing users to freely input text. For example, if a user inputs "Yesterday, I borrowed my friend's bicycle and accidentally broke it," the system will receive this information.
[0029] "Example 2"
[0030] Next, we provide a means to check whether the input content violates civil or criminal law. Specifically, we use natural language processing technology to analyze the user's input and determine whether it may violate the law. For example, in the above example, the information "I borrowed my friend's bicycle and accidentally broke it" is determined to be a "tort" under civil law.
[0031] "Example 3"
[0032] Furthermore, if the behavior violates civil or criminal law, the system provides a means to answer which law applies and hints on how to prove it. Specifically, the system references a legal knowledge base and presents the user with the applicable law and the proof requirements. For example, in the above example, the system provides hints such as, "Your behavior may be considered a tort under civil law. To prove your behavior, you need to prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[0033] "Example 4"
[0034] Finally, the system provides a means to guide the user to the consultation page of a law firm in that field. Specifically, the system refers to a database of registered law firms and presents the user with information on law firms in the relevant legal field. For example, in the above example, the system provides a list of nearby law firms that specialize in torts, stating, "The following law firms can handle your case."
[0035] The processing flow of each embodiment will be described below.
[0036] "Example 1"
[0037] Step 1: A chat box is provided as a user interface. This chat box is designed to allow the user to freely input text.
[0038] Step 2: The user types, "Yesterday, I borrowed my friend's bike and accidentally broke it," and the system takes this information and moves on to the next step.
[0039] "Example 2"
[0040] Step 1: The system uses natural language processing techniques to analyze the user's input.
[0041] Step 2: Based on the analysis results, it is determined whether the input content may violate the law. In this example, the information "I borrowed my friend's bicycle and accidentally broke it" is determined to be a "tort" under the Civil Code.
[0042] "Example 3"
[0043] Step 1: The system consults the legal knowledge base.
[0044] Step 2: Present the user with the applicable laws and the proof requirements. In this example, the system provides hints such as, "Your actions may constitute a tort under civil law. To prove your actions, you must prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[0045] "Example 4"
[0046] Step 1: The system consults a database of registered law firms.
[0047] Step 2: Present the user with information about law firms in the relevant legal field. In this example, the system provides a list of nearby law firms that specialize in torts, stating, "The following law firms can handle your case."
[0048] Example 1
[0049] Next, a description will be given of Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0050] In modern society, there is a lack of means for users to quickly and appropriately consult about their situations or events that have occurred. Furthermore, there are limited systems that can check whether the information entered by users violates the law and provide appropriate advice. Furthermore, there is a need to eliminate the information divide and provide an environment where everyone can have equal access to information.
[0051] The identification process by the identification processing unit 290 of the data processing device 12 in Example 1 is realized by the following means. In this invention, the server includes a means for a user to input their situation and the event that occurred into the chat, a means for transmitting the input text data to the server, a means for the server to analyze the received text data, a means for the server to input a prompt sentence to the generative AI model, a means for the generative AI model to generate a response, a means for displaying the generated response to the user, a means for checking whether the input content violates civil or criminal law, and if so, a means for providing hints to prove which law applies, and a means for guiding the user to a consultation page for experts in that field. This allows users to quickly and appropriately consult about their situation and the event that occurred, confirm whether the content violates the law, and receive appropriate advice. It also eliminates information gaps and provides an environment in which everyone can equally access information.
[0052] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[0053] A "chat box" is an interface that allows users to freely input text.
[0054] "Text data" is character information entered by the user into the chat box.
[0055] The "server" is a computer system whose role is to receive and analyze text data sent by users and input prompt sentences into the generative AI model.
[0056] "Parsing" is the process by which the server understands the content of the text data it receives and generates an appropriate prompt sentence.
[0057] A "generative AI model" is an artificial intelligence model that generates an appropriate response based on an input prompt.
[0058] A "prompt sentence" is an instruction sentence based on the user's text data that is input into a generative AI model.
[0059] A "response" is a reply or action that a generative AI model generates based on a prompt.
[0060] "Civil Code and Criminal Code" refers to laws that may be violated by the content entered by the user.
[0061] An "expert" is an individual or organization with advanced knowledge and experience in a particular field.
[0062] The "consultation page" is a web page or contact means for users to consult with experts.
[0063] This invention is a system in which a user inputs information about their situation or an event that has occurred into a chat box, analyzes the content, and generates an appropriate response. A specific embodiment of this system will be described below.
[0064] First, the user freely enters text about their situation or the incident that occurred in the chat box provided by the system. For example, they might enter, "Yesterday, I borrowed my friend's bicycle and accidentally broke it."
[0065] Next, the terminal sends the text data entered by the user to the server in an appropriate format (for example, JSON format).
[0066] The server receives and analyzes the text data sent from the device. Natural language processing technology is used to understand the content of the text. Specifically, the server analyzes the text data and creates prompt sentences to input into the generative AI model.
[0067] For example, if the user types "Yesterday I borrowed my friend's bike and accidentally broke it," the server will generate the following prompt:
[0068] The user types, "Yesterday, I borrowed my friend's bike and accidentally broke it." Generate an appropriate response to this situation.
[0069] Next, the server inputs the generated prompt into a generative AI model. For example, OpenAI's GPT-4 (registered trademark) is used as the generative AI model. The generative AI model generates an appropriate response based on the input prompt. For example, it generates a response such as, "It would be a good idea to apologize to your friend and offer to cover the cost of the repair."
[0070] The generated response is sent from the server to the terminal. The terminal displays the response received from the server to the user. The user can check the generated response in the chat box.
[0071] Furthermore, the system has a function to check whether the content entered by the user violates civil or criminal law. If the content entered violates the law, the server will identify which law it falls under and provide hints for proving the case. It also includes a function to direct users to a consultation page with experts in that field.
[0072] For example, if the user types "I made a mistake at work and my boss scolded me," the server will generate the following prompt:
[0073] The user types, "I made a mistake at work and my boss got angry with me." Generate an appropriate response for this situation.
[0074] Based on this prompt, the generative AI model generates a response such as, "It would be a good idea to admit your mistake and tell your boss that you will think of ways to avoid making the same mistake again."
[0075] In this way, the system provides appropriate responses to situations and events entered by the user. This system allows users to consult quickly and appropriately, confirm whether their case violates the law, and receive appropriate advice. It also eliminates information gaps and provides an environment where everyone can have equal access to information.
[0076] The flow of the identification process in the first embodiment will be described with reference to FIG.
[0077] Step 1:
[0078] The user enters text into the chat box.
[0079] Specific operation: The user freely enters text about their situation or the event that occurred in the chat box provided by the system. For example, they can enter, "Yesterday, I borrowed my friend's bicycle and accidentally broke it."
[0080] Input: Text data entered by the user.
[0081] Output: Text data entered in the chat box.
[0082] Step 2:
[0083] The terminal transmits the input text data to the server.
[0084] Specific operation: The terminal sends the text data entered by the user to the server in an appropriate format (for example, JSON format).
[0085] Input: Text data entered into the chat box.
[0086] Output: The text data sent to the server.
[0087] Step 3:
[0088] The server analyzes the received text data.
[0089] Specific operation: The server receives the text data sent from the device and analyzes it using natural language processing technology. As a result of the analysis, it creates a prompt sentence to input into the generative AI model.
[0090] Input: The text data sent to the server.
[0091] Output: The prompt sentence to be input to the generative AI model.
[0092] Step 4:
[0093] The server inputs a prompt sentence into the generative AI model.
[0094] Specific operation: The server inputs a prompt sentence created based on the analyzed text data into the generative AI model. For example, the prompt sentence might read, "The user input, 'Yesterday, I borrowed my friend's bicycle and accidentally broke it.' Please generate an appropriate response to this situation."
[0095] Input: The prompt to be input to the generative AI model.
[0096] Output: The prompt sentence fed into the generative AI model.
[0097] Step 5:
[0098] A generative AI model generates a response.
[0099] Specific behavior: A generative AI model (e.g., OpenAI's GPT-4) generates an appropriate response based on a prompt input from the server, such as "It would be a good idea to apologize to your friend and offer to cover the cost of repairs."
[0100] Input: The prompt sentence fed into the generative AI model.
[0101] Output: The generated response.
[0102] Step 6:
[0103] The server sends the generated response to the terminal.
[0104] Specific operation: The server receives the response generated by the generative AI model and sends it to the terminal in an appropriate format (e.g., JSON format).
[0105] Input: The generated response.
[0106] Output: The response sent to the terminal.
[0107] Step 7:
[0108] The terminal displays the response to the user.
[0109] Specific operation: The terminal displays the response received from the server to the user, and the user can check the generated response in the chat box.
[0110] Input: The response sent to the terminal.
[0111] Output: The response displayed to the user.
[0112] (Application example 1)
[0113] Next, a description will be given of Application Example 1 of Embodiment Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0114] In modern society, there is a lack of appropriate means for users to seek advice about their own situations and incidents. There is also a need for a system that provides advice to quickly and accurately resolve security-related problems and questions. Furthermore, it is important to provide information that allows users to take appropriate measures regarding incidents that may violate the law.
[0115] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 1 is realized by the following means.
[0116] In this invention, the server includes means for a user to input their situation and the event that occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law applies if it does violate civil or criminal law, means for directing the user to a consultation page of a law firm in that field, means for analyzing security issues and questions and using a generative AI model to provide appropriate countermeasures and advice, means for sending prompt messages to the generative AI model and generating a response, and means for displaying the generated advice to the user. This allows users to appropriately consult about their situation and problems and receive prompt and accurate advice on security issues and questions.
[0117] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[0118] "Situation" refers to the environment or state that the user is currently facing.
[0119] An "event" refers to an occurrence or incident that a user experiences.
[0120] "Chat" is an interface that allows users to interact with the system by entering text.
[0121] "Input content" refers to text information that a user inputs into a chat.
[0122] "Civil Law and Criminal Law" are laws that determine whether a user's actions or events are legally problematic.
[0123] "Means of verification" is a function to check whether the entered content violates civil or criminal law.
[0124] "Tips for Proving" provides advice and information to help users prove legally binding events.
[0125] A "lawyer's consultation page" is a law firm's web page that users can access to obtain legal advice.
[0126] "Security" refers to issues and questions regarding user safety and information protection.
[0127] A "generative AI model" is an artificial intelligence model that analyzes user input and generates appropriate countermeasures and advice.
[0128] A "prompt" is a text instruction that is input to a generative AI model.
[0129] The "means for generating a response" is the function by which the generative AI model creates an answer based on the prompt sentence.
[0130] The "display means" is a function for showing the generated advice or answer to the user.
[0131] A system for implementing this invention includes means for a user to input their situation or an event that has occurred into a chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law it falls under if it violates civil or criminal law, means for directing the user to the consultation page of a law firm in that field, means for using a generative AI model to analyze security issues and questions and provide appropriate countermeasures and advice, means for sending a prompt to the generative AI model and generating a response, and means for displaying the generated advice to the user.
[0132] Hardware and software used
[0133] Hardware: Smartphones, servers
[0134] Software: Python, OpenAI API
[0135] Data processing and calculation
[0136] 1. User input:
[0137] Users can enter their situation or the incident into the chat box on their smartphone, for example, "I recently saw a suspicious person near my house. What should I do?"
[0138] 2. Data transmission:
[0139] The smartphone sends the entered text to a server, which then checks whether it violates civil or criminal law.
[0140] 3. Use of generative AI models:
[0141] The server sends the input text to a generative AI model (e.g., OpenAI's GPT-3®) using the following format as a prompt:
[0142] A user entered the following security problem: I recently saw a suspicious person near my house. What should I do?
[0143] Please provide appropriate measures and advice.
[0144] 4. Generate response:
[0145] The generative AI model analyzes the prompt and generates appropriate measures and advice, such as, "First, alert your neighbors and contact the police to report the situation. It may also be effective to consider installing security cameras."
[0146] 5. Display Advice:
[0147] The server sends the generated advice to the smartphone and displays it to the user, who can then take appropriate measures.
[0148] Specific examples
[0149] If a user types, "I recently saw a suspicious person near my house. What should I do?", the generative AI model will provide advice such as, "First, warn your neighbors and contact the police to report the situation. You may also want to consider installing a security camera." This advice is displayed on the smartphone, allowing the user to act accordingly.
[0150] In this way, users can appropriately discuss their situations and problems, and receive prompt and accurate advice regarding security-related problems and questions.
[0151] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[0152] Step 1:
[0153] The user enters their situation or the incident into the chat box on their smartphone. For example, they might type, "I recently saw a suspicious person near my house. What should I do?" The entered text is sent to the smartphone application.
[0154] Step 2:
[0155] The smartphone sends the entered text to a server. The server receives this text and first checks whether it violates civil or criminal law. Specifically, it uses a text analysis algorithm to check whether the entered content is legally problematic. The input is the user's text, and the output is the result of a judgment as to whether it violates any legal rules.
[0156] Step 3:
[0157] The server sends the input text to a generative AI model (e.g., OpenAI's GPT-3) using the following prompt format:
[0158] A user entered the following security problem: I recently saw a suspicious person near my house. What should I do?
[0159] Please provide appropriate measures and advice.
[0160] The input is a prompt sentence, and the output is a response from the generative AI model.
[0161] Step 4:
[0162] The generative AI model analyzes the prompt and generates appropriate measures and advice. For example, it generates advice such as, "First, warn your neighbors and contact the police to report the situation. It may also be a good idea to consider installing security cameras." The input is the prompt, and the output is the generated advice.
[0163] Step 5:
[0164] The server sends the generated advice to the smartphone and displays it to the user, who can then take appropriate measures. The input is the generated advice, and the output is the advice displayed on the smartphone.
[0165] In this way, users can appropriately discuss their situations and problems, and receive prompt and accurate advice regarding security-related problems and questions.
[0166] Example 2
[0167] Next, a description will be given of Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0168] In modern society, it is difficult for ordinary people to determine whether their actions or situations violate the law. Furthermore, when there is a possibility that they may violate the law, there are limited means to understand which laws apply and to consult with appropriate experts. This leads to problems such as a lack of legal knowledge and an information gap.
[0169] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means.
[0170] In this invention, the server includes a means for users to input their own situation and the events that have occurred, a means for using natural language processing technology to analyze the input content, and a means for determining the possibility of violation of civil or criminal law using a generative AI model based on the analysis results, thereby enabling users to quickly determine whether their actions or situations violate the law and obtain information to consult with an appropriate expert.
[0171] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[0172] An "input means" is an interface or device through which a user provides text or information to a system.
[0173] "Natural language processing technology" is a technology that enables computers to understand and analyze human language, and includes tokenization, part-of-speech tagging, dependency analysis, etc.
[0174] A "generative AI model" is an artificial intelligence model trained to perform specific tasks based on input data, and is used here to determine potential legal violations.
[0175] "Civil and criminal law" refers to laws that regulate the conduct and relationships of individuals and organizations, and includes civil law and criminal law.
[0176] The "means of determination" is the process of using a generative AI model based on the analysis results to assess the likelihood that the input content violates the law.
[0177] The "means for providing a hint" is a function that indicates to the user which law the input content falls under and provides the user with information and advice to prove the point.
[0178] The "means for guiding to a page for expert consultation" is a function that provides a web page or contact information for users to seek expert legal advice.
[0179] This invention is a system that allows users to input their own situation or the events that have occurred and determines whether the content violates civil or criminal law. The system analyzes the content entered by the user and, if there is a possibility of a violation of the law, indicates which law it falls under and provides hints for proving the case. It also directs users to a page where they can seek advice from an expert, if necessary.
[0180] Hardware and software used
[0181] Hardware: Server
[0182] Software: Natural language processing libraries (e.g., spaCy, NLTK), generative AI models (e.g., GPT-3)
[0183] Program processing flow
[0184] 1. User input: The user inputs text into the system through a terminal, for example, "I was borrowing my friend's bicycle and accidentally broke it."
[0185] 2. Sending data: The device sends the user's input to the server, where it is packaged in JSON format.
[0186] 3. Data analysis: The server receives the input and analyzes it using natural language processing libraries, such as text tokenization, part-of-speech tagging, and dependency analysis.
[0187] 4. Legal collation: Based on the analysis results, the server uses a generative AI model to determine whether the input content may violate civil or criminal law. For example, if someone says, "I borrowed my friend's bicycle and accidentally broke it," the server determines that this may constitute a "tort" under civil law.
[0188] 5. Returning the results: The server returns the results to the device, packaged in JSON format.
[0189] 6. Notification to the user: The device receives the result from the server and displays it to the user. For example, it displays a message saying, "This action may be a tort under civil law."
[0190] Specific examples
[0191] Example: "I borrowed my friend's bike and accidentally broke it."
[0192] Analysis results: The text was analyzed using natural language processing technology, and the generative AI model determined that it may constitute "illegal activity."
[0193] Sample output: "This action may constitute a civil tort."
[0194] Prompt Sentence Examples
[0195] Prompt: "Judge whether the following text violates civil or criminal law. Text: 'I was borrowing my friend's bicycle and accidentally broke it.'"
[0196] This system quickly determines whether the content entered by the user violates the law and provides information to help the user consult with an appropriate expert.
[0197] The flow of the identification process in the second embodiment will be described with reference to FIG.
[0198] Step 1:
[0199] A user enters text into an input field on the device. For example, "I was borrowing my friend's bicycle and accidentally broke it." The input is saved in text format on the device.
[0200] Step 2:
[0201] The device converts the input data into JSON format and sends it to the server as an HTTP POST request. The input data is stored in the "text" field and sent to the server.
[0202] Step 3:
[0203] The server receives an HTTP request and parses the JSON-formatted data. Specifically, it uses a natural language processing library (e.g., spaCy) to tokenize the text and perform part-of-speech tagging and dependency analysis. The input data is converted into tokenized text and tagging information as the analysis results.
[0204] Step 4:
[0205] The server uses a generative AI model (e.g., GPT-3) based on the analysis results to determine whether the input content is likely to violate civil or criminal law. The generative AI model receives the analysis results as input and evaluates the likelihood of violating the law. The output is a judgment such as "there is a possibility that this constitutes an illegal act."
[0206] Step 5:
[0207] The server converts the result of the judgment into JSON format and returns it to the terminal as an HTTP response. The result of the judgment is packaged as a message such as "This action may constitute a tort under civil law."
[0208] Step 6:
[0209] The device receives the response from the server and displays the result to the user. Specifically, the web browser or mobile app screen displays the message "This action may be illegal under the Civil Code."
[0210] (Application example 2)
[0211] Next, a description will be given of Application Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0212] In modern society, users may unintentionally include content that violates the law in their everyday text communications (e.g., social media posts and business emails). In such cases, it is difficult for users to recognize legal risks in advance, resulting in a higher risk of becoming embroiled in legal trouble. Furthermore, the means for obtaining expert advice are limited, making it difficult to respond quickly and appropriately. To solve these issues, there is a need for a system that can analyze the text content entered by users in real time and evaluate legal risks.
[0213] The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means. In this invention, the server includes means for a user to input their situation and the event that occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law the content falls under if it violates civil or criminal law, means for guiding the user to a consultation page for experts in that field, means for sending the text data input by the user to a natural language processing engine and analyzing the text, means for evaluating whether the text may violate the law based on the analysis results, and means for providing feedback of the evaluation results to the user in real time. This allows the user to recognize legal risks in advance and take prompt and appropriate action.
[0214] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[0215] "Means for inputting into chat" refers to an interface for users to input text data, including keyboard input on a smartphone or computer.
[0216] "Means to check whether the entered content violates civil or criminal law" refers to algorithms or programs that analyze the text data entered by the user and determine whether it violates any law.
[0217] "Means of providing hints to prove which law it falls under" is a function that, when the entered text violates the law, presents the specific name of the law and related legal provisions, explaining it in a way that is easy for the user to understand.
[0218] "Means of directing users to consultation pages of experts in that field" is a function that provides consultation pages and contact information of relevant experts (e.g., lawyers) when a user becomes aware of a legal risk.
[0219] A "natural language processing engine" is an artificial intelligence technology that analyzes text data entered by a user and understands its meaning and context, and includes, for example, Google (registered trademark) Cloud Natural Language API and OpenAI GPT-4.
[0220] A "means for analyzing text" is a program that uses a natural language processing engine to analyze the content of text data entered by a user and understand its meaning and context.
[0221] "Means for assessing whether text may violate the law" refers to algorithms or programs that use analyzed text data to determine whether it may violate the law.
[0222] "Means for providing real-time feedback of evaluation results to users" refers to a function that immediately notifies users of the results of text analysis and displays a warning message if there is a legal risk.
[0223] A system for carrying out the present invention analyzes text data entered by a user in real time and evaluates legal risks. A specific embodiment of the system will be described below.
[0224] System configuration
[0225] 1. Hardware:
[0226] User device: Smartphone (iOS or ANDROID (registered trademark)), computer
[0227] Server: Cloud server (e.g., Amazon Web Services, Google Cloud Platform)
[0228] 2. Software:
[0229] Natural language processing engine: Google Cloud Natural Language API, OpenAI GPT-4
[0230] Mobile app development framework: React Native, Flutter (registered trademark)
[0231] System Operation
[0232] 1. User input:
[0233] Users use their smartphones or computers to enter information about their situations and events in chat format, such as messages they plan to post on social networking sites or business emails.
[0234] 2. Data transmission:
[0235] The user terminal transmits the input text data to the server, and the server transmits the received text data to the natural language processing engine.
[0236] 3. Text Analysis:
[0237] The server uses a natural language processing engine (Google Cloud Natural Language API or OpenAI GPT-4) to analyze the text data, and the analysis results include the meaning and context of the text, as well as any associated legal risks.
[0238] 4. Legal Risk Assessment:
[0239] Based on the analysis results, the server evaluates whether the text may violate civil or criminal law, specifically by determining whether it contains specific keywords or phrases based on the context.
[0240] 5. User Feedback:
[0241] The server provides the evaluation results to the user in real time, for example by displaying a warning message such as "This content may be considered illegal."
[0242] Specific examples
[0243] If a user enters a message to post on a social networking site, such as "I was borrowing my friend's bicycle and accidentally broke it," the system operates as follows:
[0244] 1. The user enters a message.
[0245] 2. The user device sends a message to the server.
[0246] 3. The server sends the message to the natural language processing engine.
[0247] 4. A natural language processing engine analyzes the message and determines that it may constitute "illegal activity."
[0248] 5. The server displays a warning to the user saying, "This content may be illegal."
[0249] Prompt Sentence Examples
[0250] Below is an example of a prompt sentence to input to the generative AI model.
[0251] Please determine whether the following text is legal.
[0252] Text: "I borrowed my friend's bike and accidentally broke it."
[0253] In this way, users can be aware of legal risks in advance and take prompt and appropriate action.
[0254] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[0255] Step 1:
[0256] Users input their situation and events in chat format. The input text data is acquired through the input interface of the user's device (smartphone or computer keyboard). The input data is temporarily saved in the user's device.
[0257] Step 2:
[0258] The user terminal sends the input text data to the server, which receives the data and prepares it for analysis. Specifically, the format of the text data is standardized and converted into a format suitable for the natural language processing engine.
[0259] Step 3:
[0260] The server sends the received text data to a natural language processing engine (e.g., Google Cloud Natural Language API or OpenAI GPT-4). The natural language processing engine analyzes the text data and understands its meaning and context. The analysis results include sentiment analysis of the text, keyword extraction, and context understanding.
[0261] Step 4:
[0262] The server receives the analysis results from the natural language processing engine and uses them to evaluate whether the text may violate civil or criminal law. Specifically, the server applies an algorithm that determines legal risk based on the context, such as whether the text contains specific keywords or phrases.
[0263] Step 5:
[0264] The server provides real-time feedback to the user based on the evaluation results. For example, if the text is likely to constitute an illegal act, it generates a warning message stating, "This content may constitute an illegal act." The generated message is then sent to the user's device.
[0265] Step 6:
[0266] The user terminal displays the feedback message received from the server. The user checks the displayed warning message and corrects the text content as necessary, or accesses an expert consultation page. When the user accesses the expert consultation page, the server provides information on related experts.
[0267] Step 7:
[0268] When a user accesses the expert consultation page, the server recommends an appropriate expert based on the user's input and analysis results. The user is then provided with the contact information for the recommended expert and the URL of the consultation page. The user can then consult with the expert based on the information provided.
[0269] In this way, users can be aware of legal risks in advance and take prompt and appropriate action.
[0270] Example 3
[0271] Next, a description will be given of a third embodiment of the third embodiment. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0272] In modern society, it is difficult for ordinary people to quickly and accurately determine whether their actions violate the law. It is also difficult for them to understand what proof is required if they violate the law. Furthermore, there are limited ways to obtain information to consult with appropriate experts. To solve these problems, a system that is easily accessible to users is needed.
[0273] The specific processing by the specific processing unit 290 of the data processing device 12 in the third embodiment is realized by the following means.
[0274] In this invention, the server includes means for a user to input their situation and the events that occurred, means for checking whether the input content violates the law, means for responding to which law it falls under and hints for proving it if it does violate the law, means for generating the applicable law and its proof requirements using a generative AI model, and means for guiding users to a consultation page for experts in the relevant legal field. This enables users to quickly determine whether their actions violate the law, understand the necessary proof requirements, and obtain information for consulting with an appropriate expert.
[0275] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[0276] A "situation" refers to a specific event or occurrence that a user is facing.
[0277] An "event" refers to a specific occurrence or action experienced by a user.
[0278] "Input means" refers to the interface or device that allows the user to communicate their situation or events to the system.
[0279] "Means of verification" refers to the system's ability to analyze information entered by the user and determine whether that information violates the law.
[0280] "Law" refers to legal provisions, including civil law, criminal law, and other legal norms.
[0281] "Tips for Proving" refers to advice that shows the information and requirements necessary for a user to prove that their actions violate the law.
[0282] "Generative AI model" refers to an algorithm or system that uses artificial intelligence technology to analyze user input and generate applicable laws and evidentiary requirements.
[0283] "Expert" refers to a lawyer or legal consultant who has specialized knowledge and experience in a legal field.
[0284] "Consultation Page" refers to an online resource that provides web pages and contact information for users to consult with experts.
[0285] This invention is a system that allows users to input their own situation and the events that have occurred, check whether they violate the law, present the necessary proof requirements, and guide them to a page where they can seek advice from an appropriate expert. This system is implemented using the following hardware and software.
[0286] Hardware and software used
[0287] Server: Manages the legal knowledge base using a database management system (e.g., MySQL or PostgreSQL) and provides the computational resources to run generative AI models (e.g., OpenAI's GPT-4).
[0288] Terminal: A device (e.g., a PC, smartphone, or tablet) through which a user enters information. The terminal accesses the system via a web browser.
[0289] Generative AI model: An artificial intelligence algorithm that analyzes user input and generates applicable laws and their evidentiary requirements.
[0290] Specific operation of the system
[0291] 1. User enters information:
[0292] The user opens a web browser on the device and accesses the system's web page. They enter their situation and the incident into the input form and click the submit button. For example, they might enter, "I broke my friend's bicycle."
[0293] 2. The device sends the information to the server:
[0294] The device sends the information entered by the user to the server using the HTTPS protocol. The data is encrypted and reaches the server safely.
[0295] 3. The server analyzes the information and generates and sends a prompt to the generative AI model:
[0296] The server analyzes the received information and generates a prompt to send to the generative AI model, such as, "If I damage my friend's bicycle, what law does that apply to me and what proof is required?"
[0297] 4. The generative AI model generates the applicable law and evidentiary requirements:
[0298] The generative AI model generates the relevant law and proof requirements based on the prompt text. For example, it generates an answer such as, "Your actions may constitute a tort under civil law. Proof requires that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[0299] 5. The server presents the generated information to the user:
[0300] The server presents the information received from the generative AI model to the user, who can then review the applicable laws and proof requirements on their device screen.
[0301] 6. The server will direct you to the appropriate expert consultation page:
[0302] The server refers to a database of registered experts and presents the user with a list of nearby experts who are knowledgeable about torts, saying, "The following experts can handle your problem." The user can check the list of experts on the screen of their device and access the consultation page.
[0303] Specific examples
[0304] If the user types "I broke my friend's bike," the server will send the following prompt to the generative AI model:
[0305] "If I damage my friend's bike, what law does that apply to and what are the proof requirements?"
[0306] The generative AI model generates answers like this:
[0307] "Your actions may constitute a tort under civil law. To prove this, you need to prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[0308] In this way, users can quickly determine whether their actions violate the law, understand the necessary proof requirements, and obtain information to consult with an appropriate expert. The flow of the identification process in the third embodiment will be described with reference to FIG.
[0309] Step 1:
[0310] The user enters information
[0311] The user opens a web browser on their device and accesses the system's web page. They enter their situation and the events that occurred in the input form and click the submit button. For example, they might enter "I broke my friend's bicycle." The input data is saved in text format on the device.
[0312] Step 2:
[0313] The device sends the information to the server
[0314] The terminal sends the information entered by the user to the server using the HTTPS protocol. The sent data is encrypted, so it arrives safely at the server. The input data is sent to the server in text format.
[0315] Step 3:
[0316] The server analyzes the information and generates and sends a prompt to the generative AI model.
[0317] The server analyzes the received information and generates a prompt to send to the generative AI model. For example, it generates a prompt such as, "If I damage my friend's bicycle, what law does that apply and what proof is required?" The input data is analyzed in text format to generate a prompt.
[0318] Step 4:
[0319] A generative AI model generates applicable laws and evidentiary requirements
[0320] The generative AI model generates the relevant law and proof requirements based on the prompt. For example, it generates an answer such as, "Your actions may constitute a tort under civil law. Proof requires that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent." The input data is the prompt, and the output data is the generated legal information and proof requirements.
[0321] Step 5:
[0322] The server presents the generated information to the user
[0323] The server presents the information received from the generative AI model to the user, who can check the applicable laws and evidentiary requirements on their device screen. The input data is the generated legal information and evidentiary requirements, and the output data is the text information presented to the user.
[0324] Step 6:
[0325] The server will direct you to the appropriate specialist consultation page.
[0326] The server refers to a database of registered experts and presents the user with a list of nearby experts who are knowledgeable in torts, saying, "The following experts can handle your problem." The user can check the list of experts on the screen of their device and access the consultation page. The input data is the database information of experts, and the output data is the list of experts presented to the user.
[0327] (Application example 3)
[0328] Next, a description will be given of Application Example 3 of Form Example 3. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0329] In modern society, users are expected to quickly determine whether their actions violate the law and take appropriate action. However, it is difficult for ordinary users who lack legal knowledge to do this on their own. It is also not easy to find an appropriate law firm. This can result in users being unable to respond quickly and appropriately when faced with a legal problem, which can result in them suffering disadvantages.
[0330] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 3 is realized by the following means.
[0331] In this invention, the server includes a means for a user to input their situation and the events that have occurred into the chat, a means for checking whether the input content violates civil or criminal law, a means for responding to the user if it violates civil or criminal law and providing hints on how to prove the violation, a means for directing the user to a consultation page of a law firm in that field, a means for determining in real time whether the user's actions violate the law, a means for presenting the applicable law and the proof requirements, a means for providing information on law firms in that field as needed, and an application to be installed on a smartphone. This allows the user to quickly determine whether their actions violate the law and take appropriate action.
[0332] "User" refers to any individual or legal entity that uses the System.
[0333] A "situation" refers to a specific event or environment that a user is facing.
[0334] An "event" refers to a specific occurrence or action experienced by a user.
[0335] "Chat" refers to a text-based means of communication.
[0336] "Input" refers to the act of a user providing information to a system.
[0337] "Civil Code" refers to the law that stipulates the rights and obligations between individuals.
[0338] "Criminal law" refers to laws that define crimes and their punishments.
[0339] "Validation" refers to the act of verifying whether entered information meets certain criteria.
[0340] A "hint" is a clue or advice that helps a user solve a problem.
[0341] "Law firm" refers to an institution that provides professional legal services.
[0342] The "consultation page" refers to a web page where a user can make a consultation with a law firm.
[0343] "Real-time" refers to near-simultaneous processing and response.
[0344] "Requirements of proof" refers to the conditions or evidence necessary to prove a particular violation of law.
[0345] "Information" refers to user-provided and system-generated data.
[0346] "Providing" refers to the act of giving information or services to a user.
[0347] A "smartphone" refers to a mobile phone that can connect to the Internet and use applications.
[0348] "Application" refers to software that provides specific functions or services.
[0349] The system for implementing this invention provides a function that allows users to input their situation or an incident into a chat and check whether the content violates civil or criminal law. It also has a function that presents the applicable law and its proof requirements, and if necessary, directs users to the consultation page of a law firm in that field.
[0350] System configuration
[0351] The system consists of the following major components:
[0352] 1. User device: A mobile information terminal such as a smartphone.
[0353] 2. Server: Holds the legal knowledge base and the database of law firms and processes input from users.
[0354] 3. Application: Software installed on your smartphone.
[0355] Hardware and Software
[0356] Hardware: Smartphone (e.g. iPhone (registered trademark), Android device)
[0357] Software: Python, JSON, requests library
[0358] Data processing and calculation
[0359] 1. User terminal: The user inputs their situation and events in chat format.
[0360] 2. Server: Receives user input, consults a legal knowledge base to identify applicable laws and evidentiary requirements, and, if necessary, consults a database of law firms to provide information on appropriate law firms.
[0361] 3. Application: Displays results to the user in real time and provides the necessary information.
[0362] Specific examples
[0363] For example, if a user enters "I broke my friend's bike," the system will operate as follows:
[0364] 1. Information entered on the user terminal is sent to the server.
[0365] 2. The server consults its legal knowledge base to determine whether the activity constitutes a "tort."
[0366] 3. If applicable, present the user with the requirements of proof (act, damage, negligence).
[0367] 4. In addition, we will refer to a database of law firms and provide information on appropriate law firms.
[0368] Prompt Sentence Examples
[0369] "Please create a system that determines whether the user's actions violate the law and presents the applicable law and the proof requirements. Also, please add a function that directs users to the consultation page of a law firm that specializes in that field."
[0370] In this way, users can quickly determine whether their actions violate the law and take appropriate action.
[0371] The flow of the specific processing in Application Example 3 will be described with reference to FIG.
[0372] Step 1:
[0373] The user enters their situation and the events that have occurred into a chat application on their smartphone.
[0374] Input: Text information entered by the user (e.g., "I broke my friend's bike")
[0375] Output: The entered text information is sent to the server.
[0376] Step 2:
[0377] The server receives the text information sent by the user.
[0378] Input: Text information sent by the user
[0379] Output: Text information is ready to be processed in the server
[0380] Step 3:
[0381] The server analyzes the received text information and checks the applicable law by referring to a legal knowledge base.
[0382] Input: Received text information
[0383] Data processing: Using text analysis algorithms to extract important keywords from text information
[0384] Output: Information on applicable laws based on extracted keywords
[0385] Step 4:
[0386] The server presents the user with the applicable law and its proof requirements.
[0387] Input: Information and substantive requirements of applicable law
[0388] Output: A text message informing the user of the applicable law and proof requirements.
[0389] Step 5:
[0390] The server refers to the law firm database as needed to obtain information on the appropriate law firm.
[0391] Input: Applicable legal information
[0392] Data processing: Query a database of law firms to find law firms in your field
[0393] Output: A list of suitable law firms
[0394] Step 6:
[0395] The server provides the acquired law firm information to the user.
[0396] Input: Law firm list
[0397] Output: A text message displaying the law firm's information to the user
[0398] Step 7:
[0399] The user takes necessary action based on the information provided.
[0400] Input: Legal information and law firm information provided by the server
[0401] Output: Actions that the user can take to take appropriate action
[0402] In this way, users can quickly determine whether their actions violate the law and take appropriate action.
[0403] Furthermore, an emotion engine that estimates the user's emotion may be combined. That is, the identification processing unit 290 may estimate the user's emotion using the emotion identification model 59 and perform identification processing using the user's emotion.
[0404] "Example 1"
[0405] One embodiment of the present invention is a system incorporating an emotion engine. In this system, when a user enters information about their situation or an incident into a chat, the emotion engine analyzes the user's emotion from the text. For example, if a user enters, "Yesterday, I borrowed my friend's bicycle and accidentally broke it. I really regret it," the emotion engine will recognize the emotion "regret."
[0406] "Example 2"
[0407] The results of the emotion engine's analysis are used to determine whether the system is likely to violate the law. In the example above, the emotion of "regret" indicates that the user recognizes that their actions were wrong. This allows the system to determine that the user's actions are likely to constitute a "tort" under civil law.
[0408] "Example 3"
[0409] Furthermore, the emotion engine recommends the most suitable law firm based on the user's emotions. In the example above, the emotion of "regret" indicates the user's desire to correct their actions and compensate for the damage. For such a user, the engine recommends a law firm that values honesty in its dealings.
[0410] The processing flow of each embodiment will be described below.
[0411] "Example 1"
[0412] Step 1: The user enters their situation and the incident into the chat.
[0413] Step 2: The emotion engine analyzes the user's emotion from the input text.
[0414] "Example 2"
[0415] Step 1: The emotion engine analysis results are sent to the system.
[0416] Step 2: The system determines the possibility of legal violations based on the analysis results.
[0417] "Example 3"
[0418] Step 1: The emotion engine analyzes the user's emotions.
[0419] Step 2: The emotion engine recommends the most suitable law firm based on the analysis results.
[0420] Example 1
[0421] Next, a description will be given of Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0422] In modern society, there is a demand for systems that allow users to easily record their own situations and events, and receive necessary legal advice and emotional feedback. However, current systems lack the means to check whether the content entered by the user is legally problematic, or to analyze emotions and provide feedback. This can prevent users from receiving appropriate advice, creating an information gap.
[0423] The specific processing by the specific processing unit 290 of the data processing device 12 in the first embodiment is realized by the following means.
[0424] In this invention, the server includes means for users to input their situation and the events that have occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law applies if it does violate civil or criminal law, means for directing the user to a consultation page with experts in that field, means for analyzing the input text and identifying the user's emotions, and means for providing feedback on the identified emotions to the user. This allows users to easily record their situation and receive legal advice and emotional feedback.
[0425] A "user" is an individual or group that uses the system to enter information about their situation or events that have occurred into the chat.
[0426] "Means for inputting text into chat" is a function that provides an interface for users to input text.
[0427] "Means to check whether the entered content violates civil or criminal law" is a function that analyzes the text entered by the user and determines whether there are any legal issues.
[0428] "Means of answering which law applies and hints on how to prove it" is a function that provides information on the applicable law and how to prove it if the content entered is legally problematic.
[0429] The "means for guiding to a page for consulting an expert" is a function for guiding to a web page of an expert that the user can consult when they have a legal problem.
[0430] The "means for analyzing input text and identifying the user's emotions" is a function that uses natural language processing technology to analyze the text input by the user and identify the emotions.
[0431] The "means for providing feedback of the identified emotion to the user" is a function for notifying the user of the emotion identified by the analysis.
[0432] This invention is a system that allows users to input their own situations and events into a chat, checks whether the content is legally problematic, and provides legal advice and emotional feedback as necessary. A specific embodiment of this system is described below.
[0433] First, a user freely enters text about their situation or the incident into a chat box on a web browser or mobile application. For example, they might type, "Yesterday, I borrowed my friend's bicycle and accidentally broke it. I really regret it."
[0434] The terminal (user's device) then transmits the entered text in real time to the server, using the HTTPS protocol to transmit data securely.
[0435] The server analyzes the received text data and first checks whether the entered content violates civil or criminal law. This analysis is performed using natural language processing (NLP) technology, specifically software such as Google Cloud Natural Language API and IBM Watson® Natural Language Understanding.
[0436] If the entered content is legally questionable, the server will provide the user with hints on how to prove which law it falls under, and will also direct them to a consultation page with experts in that field.
[0437] At the same time, the server uses an emotion engine to analyze the user's emotions from the input text. The emotion engine identifies emotions based on the context and keywords of the text, such as "regret," "sadness," and "joy."
[0438] The emotion identified as a result of the analysis is fed back to the user from the server. The user can check the analysis results in a chat box. For example, a message such as "The emotion 'regret' has been detected from your input" will be displayed.
[0439] For example, consider the following prompt:
[0440] User: "I borrowed my friend's bike yesterday and accidentally broke it. I really regret it."
[0441] Terminal: Sends entered text to the server.
[0442] Server: Passes the received text to the emotion engine.
[0443] Emotion engine: Analyzes text and identifies the emotion "regret."
[0444] Server: Returns the analysis results to the user.
[0445] User: The chat box displays, "The emotion 'regret' has been detected in your input."
[0446] In this way, the system analyzes emotions from the text entered by the user and provides appropriate feedback.
[0447] The flow of the identification process in the first embodiment will be described with reference to FIG.
[0448] Step 1:
[0449] The user enters text into the chat box.
[0450] Input: Text entered by the user (e.g., "Yesterday, I borrowed my friend's bike and accidentally broke it. I really regret it.")
[0451] Output: The input text data
[0452] Specific operation: The user freely enters text about their situation or the events that occurred in the chat box on the web browser or mobile application.
[0453] Step 2:
[0454] The terminal sends the entered text to the server.
[0455] Input: Text data entered by the user
[0456] Output: Text data sent to the server
[0457] How it works: The terminal (user's device) sends the entered text to the server in real time, using the HTTPS protocol to send data securely.
[0458] Step 3:
[0459] The server passes the received text to the emotion engine.
[0460] Input: Text data sent to the server
[0461] Output: Text data passed to the emotion engine
[0462] Specific operation: The server passes the received text data to the emotion engine, which is a software component for analyzing text using natural language processing (NLP) techniques.
[0463] Step 4:
[0464] The emotion engine analyzes the text and identifies the user's emotion.
[0465] Input: Text data passed to the emotion engine
[0466] Output: Identified emotion (e.g., "regret")
[0467] What it does: The emotion engine analyzes text and identifies the user's emotions, such as "regret," "sadness," and "joy." This analysis is based on the context and keywords in the text.
[0468] Step 5:
[0469] The server returns the analysis results to the user.
[0470] Input: Identified emotion
[0471] Output: The analysis results returned to the user (e.g., "The emotion 'regret' was detected from your input.")
[0472] Specific operation: The server returns the analysis results obtained from the emotion engine to the user, who can then check the analysis results in the chat box.
[0473] (Application example 1)
[0474] Next, a description will be given of Application Example 1 of Embodiment Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0475] In conventional systems, when users input their own situations or incidents, there was a lack of a way to check whether the content violated the law. Furthermore, the system lacked the ability to analyze users' emotions and generate appropriate security alerts. This made it difficult to respond quickly when users felt anxious or scared.
[0476] The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means. In this invention, the server includes: means for a user to input their situation and the event that occurred into the chat; means for checking whether the input content violates civil or criminal law; means for providing hints to prove which law applies if it does; means for guiding the user to a consultation page of a law firm in that field; means including an emotion engine for analyzing the user's emotions from the input text; and means for generating a security alert based on the analyzed emotions. This makes it possible to quickly issue a security alert through emotion analysis while checking whether the user has violated the law.
[0477] "User" refers to any individual or legal entity that uses the System.
[0478] "Situation" refers to the events or environment that the user is currently facing.
[0479] An "incident" refers to a specific occurrence or event experienced by a user.
[0480] "Chat" refers to a means by which users communicate by inputting text.
[0481] "Input content" refers to text information entered by a user into a chat.
[0482] "Civil and Criminal Law" refers to the laws that may be violated by the User's actions or events.
[0483] "Means of verification" refers to the function of checking whether the entered content violates the law.
[0484] "Proof tips" refers to supplementary information that helps users determine whether they are in violation of the law.
[0485] "Law firm consultation page" refers to a web page where users can seek legal advice.
[0486] "Emotion engine" refers to software for analyzing a user's emotions from input text.
[0487] "Security alert" refers to a warning message sent based on the results of user sentiment analysis.
[0488] A system for implementing this invention includes means for a user to input their situation or an event that has occurred into a chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law it falls under if it violates civil or criminal law, means for directing the user to a consultation page of a law firm in that field, means including an emotion engine that analyzes the user's emotions from the input text, and means for generating a security alert based on the analyzed emotions.
[0489] Program processing explanation
[0490] The server receives the text entered by the user in the chat box and first checks whether the content violates civil or criminal law. This check is done using natural language processing technology. Specifically, it uses OpenAI's API to analyze the text and determine whether it may violate the law.
[0491] Next, if the entered text violates a law, it will identify which law it falls under and provide hints to the user on how to prove it, helping the user to obtain appropriate legal advice.
[0492] Furthermore, an emotion engine is used to analyze the user's emotions from the input text. This emotion engine uses an emotion analysis library such as TextBlob to analyze the emotions of the text. Based on the analysis results, if the user is feeling strong anxiety or fear, a security alert is generated.
[0493] Hardware and software used
[0494] Hardware: Smartphones, servers
[0495] Software: Python, OpenAI API, TextBlob
[0496] Specific examples
[0497] For example, if a user types, "I've been seeing some suspicious people around my house lately. It's making me feel uneasy," the system might process it as follows:
[0498] 1. Type: "I've been seeing some suspicious people around my house lately. It's making me very uneasy."
[0499] 2. Legal confirmation: Check whether the entered information violates the law
[0500] 3. Sentiment Analysis: Analyze the sentiment of the text using TextBlob and determine the polarity as -0.7 (anxiety)
[0501] 4. Security Alert: Generate an alert saying "Security Alert: User feels very uneasy."
[0502] Prompt Sentence Examples
[0503] "If a user types, 'I've been seeing suspicious people around my house lately. I'm feeling very uneasy,' use an emotion engine to analyze the emotion and generate a security alert."
[0504] In this way, a system can be realized that analyzes user input, performs legal verification and sentiment analysis as necessary, and generates appropriate alerts.
[0505] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[0506] Step 1:
[0507] The user enters text into the chat box. The entered text describes the user's situation or the event that occurred. For example, the user might enter, "I've been seeing suspicious people around my house lately. I'm feeling very uneasy."
[0508] Step 2:
[0509] The server receives the text entered by the user, which is then passed to the next processing step.
[0510] Step 3:
[0511] The server analyzes the received text and checks whether it violates civil or criminal law. This check is performed using natural language processing using the OpenAI API. Input: User's text. Output: Determination result of whether it violates the law.
[0512] Step 4:
[0513] If the server determines that the content violates the law, it identifies which law it violates and provides the user with hints to prove their case. Input: Text determined to be in violation of the law. Output: The applicable law and hints to prove their case.
[0514] Step 5:
[0515] The server uses the emotion engine to analyze the user's emotion from the input text. Specifically, it uses the TextBlob library to analyze the emotion of the text. Input: User's text. Output: Emotion analysis result (e.g. polarity is -0.7).
[0516] Step 6:
[0517] If the server determines that the user is feeling strong anxiety or fear based on the emotion analysis results, it generates a security alert. Input: Emotion analysis results. Output: Security alert message (e.g., "Security alert: The user is feeling strong anxiety.").
[0518] Step 7:
[0519] The server notifies the user of the generated security alert. Possible notification methods include push notifications on smartphones and emails. Input: Security alert message. Output: Notification to the user.
[0520] In this way, a system can be realized that analyzes user input, performs legal verification and sentiment analysis as necessary, and generates and notifies appropriate alerts.
[0521] Example 2
[0522] Next, a description will be given of Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0523] In modern society, it is difficult for ordinary people to determine whether their actions or situations violate the law. It is also difficult for them to understand which laws apply and obtain information to take appropriate action when they do. Furthermore, when emotional factors are involved, it is difficult to understand how emotions affect legal judgments. A system that can solve these problems is needed.
[0524] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means.
[0525] In this invention, the server includes means for a user to input their situation and the events that have occurred, means for analyzing the input content using natural language processing technology, means for checking whether the analyzed content violates civil or criminal law, means for checking against a legal database to determine the applicable law, means for analyzing the user's emotions using an emotion analysis engine, means for providing hints to prove which law may apply if there is a possibility of a violation, and means for directing the user to a consultation page with experts in that field. This allows the user to quickly and accurately determine whether their actions or situation violate the law and obtain information to take appropriate action.
[0526] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[0527] "Input means" refers to an interface that allows a user to provide information about their situation or events that have occurred to the system in the form of text, voice, or the like.
[0528] "Natural language processing technology" refers to technology that enables computers to understand and analyze human language, and includes text tokenization and grammatical analysis.
[0529] The "means for analyzing" is a function for tokenizing the user's input using natural language processing technology and performing grammatical analysis.
[0530] "Means of confirmation" is a function to determine whether the analyzed content violates civil or criminal law.
[0531] A "legal database" is a database containing legal provisions such as civil and criminal laws, and is used by the system to verify input content.
[0532] The "means of matching" is a function for comparing the analyzed content with a legal database and identifying the applicable law.
[0533] An "emotion analysis engine" is a technology for extracting and analyzing emotions from user input.
[0534] "Means for analyzing emotions" is a function that uses an emotion analysis engine to identify the user's emotions and reflects the results in the system.
[0535] The "means of answering hints" is a function that indicates which law applies when there is a possibility of violating the law, and provides information that allows the user to take appropriate action.
[0536] The "means for guiding to a page for expert consultation" is a function for guiding a user to a page for receiving expert legal consultation.
[0537] This invention is a system that allows users to input their own situation or incidents and check whether the content violates civil or criminal law. The system uses natural language processing technology to analyze the user's input and compares it with a legal database to determine the applicable law. It also uses an emotion analysis engine to analyze the user's emotions, and if there is a possibility of a violation of the law, it provides hints to prove which law applies and directs users to a page for expert consultation.
[0538] Hardware and software used
[0539] Hardware
[0540] Server: a computer system for performing data processing and analysis
[0541] Terminal: A device used by a user to input information (e.g., a computer or smartphone)
[0542] software
[0543] Natural language processing libraries: Python's "spaCy" and "NLTK"
[0544] Sentiment analysis engine: Google Cloud Natural Language API
[0545] Legal database: Civil and criminal law database
[0546] Data processing and calculation
[0547] Natural Language Processing
[0548] The server uses a natural language processing library to tokenize the text received from the user and perform grammatical analysis. Specifically, it breaks the text down into words and phrases and analyzes each part of speech and grammatical structure.
[0549] Legal database matching
[0550] The server checks the analysis results against a legal database, comparing the analyzed tokens and grammatical structures with the legal provisions in the database to see if there are any matching provisions.
[0551] Emotion analysis
[0552] The server uses an emotion analysis engine to analyze the emotions from the user's input. Specifically, it extracts emotions such as "regret" or "sadness" from the text.
[0553] Specific examples
[0554] Consider the case where the user inputs "I was borrowing my friend's bicycle and accidentally broke it." In this case, the server processes as follows:
[0555] 1. The user types into the terminal, "I was borrowing my friend's bicycle and accidentally broke it."
[0556] 2. The server receives the text and uses a natural language processing library to tokenize and parse it.
[0557] 3. The server compares the analysis results with a legal database to determine the possibility of "illegal activity."
[0558] 4. The server uses a sentiment analysis engine to detect the sentiment of "regret."
[0559] 5. Based on the results of comparison with the legal database and sentiment analysis, the server determines that the user's actions are likely to constitute "illegal conduct."
[0560] 6. The server displays a message on the terminal stating, "Your actions may constitute a tort under civil law."
[0561] Prompt Sentence Examples
[0562] If a user types in "I was borrowing my friend's bicycle and accidentally broke it," determine whether this action constitutes a "tort" under civil law.
[0563] In this way, the system analyzes the user's input to determine whether it may violate the law and makes appropriate decisions.
[0564] The flow of the identification process in the second embodiment will be described with reference to FIG.
[0565] Step 1:
[0566] The user uses a terminal to input text into the system. For example, they might input, "I was borrowing my friend's bicycle and accidentally broke it." The input text is sent to the server. The input data is text that includes the user's situation and the events that occurred.
[0567] Step 2:
[0568] The server uses a natural language processing library (e.g., Python's "spaCy" or "NLTK") to tokenize the received text and perform grammatical analysis. Specifically, it breaks the text down into words and phrases and analyzes each word's part of speech and grammatical structure. The input is the user's text, and the output is a tokenized word list and the grammatical analysis results.
[0569] Step 3:
[0570] The server checks the analysis results against a legal database. It compares the analyzed tokens and grammatical structures with the provisions in the legal database to see if there are any applicable provisions. The input is the grammatical analysis result, and the output is a list of applicable legal provisions. Specifically, it searches for relevant provisions in the legal database and identifies which laws the user's actions fall under.
[0571] Step 4:
[0572] The server uses a sentiment analysis engine (e.g., Google Cloud Natural Language API) to analyze emotions from the user's input. Specifically, it extracts emotions such as "regret" or "sadness" from the text. The input is the user's text, and the output is a list of detected emotions. Specifically, the server sends the text to the sentiment analysis engine and receives the sentiment analysis results.
[0573] Step 5:
[0574] The server determines whether the user's actions may violate the law based on the results of matching with a legal database and the results of sentiment analysis. The input is a list of legal provisions and the results of sentiment analysis, and the output is a judgment result on the likelihood of violating the law. Specifically, it integrates the legal provisions and the results of sentiment analysis to evaluate whether the user's actions constitute "illegal acts."
[0575] Step 6:
[0576] The server notifies the user of the result of the judgment. Specifically, it displays a message on the terminal such as "Your action may constitute a tort under civil law." The input is the judgment result of the possibility of violating the law, and the output is a notification message to the user. Specifically, it generates a notification message and sends it to the user's terminal.
[0577] In this way, the system analyzes the user's input to determine whether it may violate the law and makes appropriate decisions.
[0578] (Application example 2)
[0579] Next, a description will be given of Application Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0580] In modern society, when users post content on social media or messaging apps that may violate the law, they are required to detect the risk in advance and take appropriate action. However, with current systems, it is difficult for users to determine whether their comments violate the law, and when emotional elements are involved, it is difficult to accurately assess the risk. This increases the risk that users will unintentionally make comments that violate the law.
[0581] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 2 is realized by the following means.
[0582] In this invention, the server includes means for users to input their situation and the events that have occurred into the chat, means for checking whether the input content violates civil or criminal law, and if so, means for providing hints to prove which law it falls under, means for analyzing the user's emotions using an emotion analysis engine and identifying factors that increase the likelihood of violating the law, and means for analyzing in real time the content that the user is about to send via SNS or messaging app and displaying a warning, thereby reducing the risk that the user will unintentionally make statements that violate the law and enabling appropriate action to be taken.
[0583] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[0584] "Means for inputting into chat" refers to an interface that allows users to input their situation and events that have occurred in text format.
[0585] "Means to check whether the entered content violates civil or criminal law" is a function that uses natural language processing technology to analyze whether the entered content violates any law.
[0586] "Means of answering questions and providing hints to prove which law applies" is a function that provides information on the applicable law and useful information to prove the law when the entered content violates the law.
[0587] The "means for guiding the user to the consultation page of a law firm" is a function for guiding the user to the web page of an appropriate law firm in order to seek legal advice.
[0588] An "emotion analysis engine" is a technology that analyzes emotions from user input and identifies elements that increase the likelihood that those emotions will violate the law.
[0589] "Means of analyzing in real time and displaying warnings" refers to a function that instantly analyzes the content a user is about to send on social media or messaging apps, and displays a warning if there is a possibility that it may violate the law.
[0590] As an embodiment of the present invention, a system is provided that allows a user to input their own situation or an incident that has occurred and check whether it may violate the law. A specific embodiment of this system is described below.
[0591] System configuration
[0592] The system includes a user terminal, a server, and an emotion analysis engine. The user terminal is a device such as a smartphone or PC, and provides an interface for users to input text in chat format. The server analyzes the input text and determines whether it may violate the law. The emotion analysis engine analyzes emotions from the user's input and identifies elements that increase the likelihood that the emotions violate the law.
[0593] Hardware and software used
[0594] Hardware: Smartphones, PCs
[0595] Software: Python, spaCy, Transformers, TextBlob
[0596] Data processing and calculation
[0597] 1. Natural Language Processing: The server uses spaCy to parse the user's input text and perform tokenization and part-of-speech tagging.
[0598] 2. Sentiment Analysis: The server uses a sentiment analysis model from the Transformers library to obtain sentiment scores and labels for the input text.
[0599] 3. Polarity analysis: The server uses TextBlob to analyze the polarity (emotion polarity) of the input text.
[0600] 4. Judgment of legality: Based on the analysis results, the server judges whether the input text is likely to violate the law. Specifically, it checks whether it contains specific keywords.
[0601] Specific examples
[0602] If a user enters "I borrowed my friend's bicycle and accidentally broke it," the system will detect the keyword "illegal act" and recognize the emotion of "regret" from the results of emotion analysis. Based on this, the server will determine that the user's behavior is likely to constitute a "tort" under the Civil Code and will display a warning.
[0603] Prompt Sentence Examples
[0604] "I borrowed my friend's bike and accidentally broke it. What should I do?"
[0605] By feeding this prompt into a generative AI model, the system can provide appropriate legal advice.
[0606] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[0607] Step 1:
[0608] A user uses a terminal to input text about their situation or an event that has occurred into a chat-style interface. The input text is sent from the terminal to the server. The input data is text information about the user's situation or an event.
[0609] Step 2:
[0610] The server analyzes the received text using spaCy. Specifically, it tokenizes the text and tags it with parts of speech. The input data is the text entered by the user, and the output data is the tokenized text and its part of speech information.
[0611] Step 3:
[0612] The server uses a sentiment analysis model from the Transformers library to obtain sentiment scores and labels for the input text. The input data is tokenized text, and the output data is sentiment scores and sentiment labels.
[0613] Step 4:
[0614] The server uses TextBlob to analyze the polarity (sentiment polarity) of the input text. The input data is the text entered by the user, and the output data is the polarity score.
[0615] Step 5:
[0616] The server determines whether the input text may violate the law based on the analysis results. Specifically, it checks whether specific keywords are included. The input data is tokenized text, emotion score, emotion label, and polarity score, and the output data is whether the text may violate the law.
[0617] Step 6:
[0618] If the server determines that there is a possibility of violating the law, it displays a warning to the user. The warning message includes the applicable law and information that can be used to prove it. The input data is whether there is a possibility of violating the law, and the output data is the warning message.
[0619] Step 7:
[0620] The server guides the user to the appropriate law firm's web page for legal consultation. The input data is whether or not the user is likely to violate the law and a warning message, and the output data is a link to the law firm's consultation page.
[0621] Example 3
[0622] Next, a description will be given of a third embodiment of the third embodiment. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0623] In conventional systems, users had limited means to obtain information to confirm whether their actions violated the law, making it difficult to find an appropriate law firm. Furthermore, the system lacked the functionality to recommend the most suitable law firm based on the user's feelings, making it difficult for users to receive appropriate legal support.
[0624] The specific processing by the specific processing unit 290 of the data processing device 12 in the third embodiment is realized by the following means.
[0625] In this invention, the server includes means for a user to input their situation and the events that occurred into the chat, means for checking whether the input content violates civil or criminal law, means for responding to which law the content falls under and hints for proving the facts if it does violate civil or criminal law, means for guiding the user to the consultation page of a law firm in that field, means for analyzing the user's input using a generative AI model, means for identifying the applicable law and the proof requirements by referring to a legal knowledge base, and means for analyzing the user's emotions using an emotion engine and recommending the most appropriate law firm. This allows users to quickly check whether their actions violate the law and receive appropriate legal support.
[0626] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[0627] "Means for inputting into chat" refers to an interface that allows users to input their own situation and events that have occurred in text format.
[0628] "Means to check whether the information violates civil or criminal law" is a function to determine whether the information entered by the user violates civil or criminal law.
[0629] The "means of providing hints for proof" is a function that, if the content entered by the user violates the law, indicates which law it falls under and the proof requirements.
[0630] The "means for guiding to the consultation page of a law firm" is a function that provides information on a law firm that can handle the user's problem and guides the user to that consultation page.
[0631] A "generative AI model" is an artificial intelligence model that analyzes user input and extracts relevant information.
[0632] A "legal knowledge base" is a database containing information on civil and criminal law that is used to identify applicable laws and evidentiary requirements.
[0633] The "Emotion Engine" is a function that analyzes the user's emotions and recommends the most suitable law firm based on those emotions.
[0634] The present invention provides a system for enabling users to check whether their actions violate the law and receive appropriate legal assistance. A specific embodiment of this system will be described below.
[0635] Hardware and software used
[0636] Hardware: Servers, terminals (PCs, smartphones)
[0637] Software: Generative AI models, legal knowledge bases, emotion engines, law firm databases
[0638] System Overview
[0639] 1. Accepting user input
[0640] Users use a device (PC or smartphone) to enter information about their situation and events that have occurred in chat format.
[0641] Example: A user types, "I broke my friend's bike."
[0642] 2. Analysis using generative AI models
[0643] The server sends the input data received from the user to the generative AI model for analysis.
[0644] The generative AI model analyzes the input data and extracts relevant information.
[0645] Example: A server analyzes the action "I broke my friend's bike" and extracts information to identify the relevant law.
[0646] 3. Legal Knowledge Base Reference
[0647] Based on the information obtained from the generative AI model, the server refers to a legal knowledge base and searches for relevant laws.
[0648] Example: The server determines that the activity may be a "civil tort" and retrieves the relevant legal provisions.
[0649] 4. Presentation of applicable laws and evidentiary requirements
[0650] The server presents the user with the applicable law and its proof requirements.
[0651] Example: The server notifies the user that "Your actions may constitute a tort under civil law. To prove this, you must prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[0652] 5. Law firm recommendation
[0653] The server consults a law firm database to identify law firms in the relevant legal field.
[0654] Example: A server provides a user with a list of nearby law firms specializing in torts, saying, "Here are some law firms that can help you with your case."
[0655] 6. Recommending the best law firm using an emotion engine
[0656] The server uses an emotion engine to analyze the user's emotions and recommend the most suitable law firm.
[0657] Example: The server analyzes the user's emotion of "regret" and recommends law firms that prioritize honesty in their dealings.
[0658] Examples of specific examples and prompts
[0659] Specific examples
[0660] The user types, "I broke my friend's bike."
[0661] The server analyzes the data using a generative AI model and determines that it may constitute a tort under civil law.
[0662] The server consults a legal knowledge base and presents the requirements for proof.
[0663] The server references a database of law firms and lists nearby law firms that specialize in torts.
[0664] The emotion engine analyzes the user's emotion of "regret" and recommends law firms that prioritize honesty in their responses.
[0665] Prompt Sentence Examples
[0666] "If I damage my friend's bicycle, what law would I be violating? Also, what are the proof requirements and which law firms can handle this?"
[0667] In this way, the user can check whether his or her actions violate the law and obtain information to take appropriate action. The flow of the identification process in the third embodiment will be described with reference to FIG.
[0668] Step 1:
[0669] Accepting user input
[0670] How it works: Users use a device (PC or smartphone) to enter information about their situation and events in chat format.
[0671] Input: A user types "I broke my friend's bike" into a form.
[0672] Output: The entered text data is sent to the server.
[0673] Step 2:
[0674] Analysis using generative AI models
[0675] How it works: The server sends the input data received from the user to the generative AI model for analysis.
[0676] Input: Text data received by the server (e.g., "I broke my friend's bike").
[0677] Data processing: The generative AI model analyzes the input data and extracts relevant information.
[0678] Output: The analysis results in relevant legal information.
[0679] Step 3:
[0680] Legal Knowledge Base Reference
[0681] How it works: The server uses the information obtained from the generative AI model to refer to the legal knowledge base and search for relevant laws.
[0682] Input: Analysis results from the generative AI model (e.g., "illegal activity").
[0683] Data processing: The server searches the legal knowledge base and retrieves the relevant legal provisions.
[0684] Output: The relevant legal provisions and their evidentiary requirements are obtained.
[0685] Step 4:
[0686] Presentation of applicable laws and evidentiary requirements
[0687] Action: The server presents the user with the applicable law and its proof requirements.
[0688] Input: Legal provisions and evidentiary requirements obtained from a legal knowledge base.
[0689] Data processing: The server converts the acquired information into a format that is easy for the user to understand.
[0690] Output: The user's device will see the following message: "Your actions may constitute a tort under civil law. To prove this, you will need to prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[0691] Step 5:
[0692] Law firm recommendation
[0693] What it does: The server consults a law firm database to identify law firms in the appropriate area of law.
[0694] Input: Information from a legal knowledge base (e.g., "law firms that specialize in torts").
[0695] Data Processing: The server searches the law firm database and generates a list of relevant law firms.
[0696] Output: A list will be displayed on the user's terminal stating, "The following law firms can handle your case."
[0697] Step 6:
[0698] Recommending the best law firm using an emotion engine
[0699] How it works: The server uses an emotion engine to analyze the user's emotions and recommend the most suitable law firm.
[0700] Input: User emotion data (e.g., "regret").
[0701] Data Processing: The emotion engine analyzes the user's emotions and identifies the best law firm based on those emotions.
[0702] Output: The user's device will display a list of law firms that prioritize honesty based on the emotion of "regret."
[0703] In this way, users can check whether their actions violate the law and obtain information to take appropriate action.
[0704] (Application example 3)
[0705] Next, a description will be given of Application Example 3 of Form Example 3. In the following description, the data processing device 12 will be referred to as a "server" and the smart device 14 will be referred to as a "terminal."
[0706] In modern society, when users engage in actions that may violate the law in their daily lives, it is difficult for them to receive prompt and appropriate legal advice. Furthermore, there is no system that can recommend the most appropriate law firm based on the user's emotions or location information, making it difficult for users to receive appropriate legal support. This poses a risk that users will not be able to take appropriate legal action, and the problem will become more serious.
[0707] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 3 is realized by the following means.
[0708] In this invention, the server includes means for a user to input their situation and the events that have occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law applies if it does violate civil or criminal law, means for guiding the user to the consultation page of a law firm in that field, means for analyzing the user's emotions and recommending the most suitable law firm, and means for listing nearby law firms based on the user's location information. This allows the user to receive prompt and appropriate legal advice and find the most suitable law firm based on emotions and location information.
[0709] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[0710] "Chat" is an interactive interface that allows users to input their situation and events.
[0711] "Civil Law and Criminal Law" refers collectively to the laws that may be violated by the User's actions, including civil and criminal legal norms.
[0712] "Means of verification" is a function to determine whether the entered content violates civil or criminal law.
[0713] "Hints for Proof" is information that indicates the requirements for proof when the user's actions fall under the law.
[0714] A "lawyer's office consultation page" is a law firm's web page that a user accesses to obtain legal advice.
[0715] The "means for analyzing emotions" is a function that analyzes emotions from the user's input and recommends the most suitable law firm based on the results.
[0716] The "means of recommending the most suitable law firm" is a function for selecting and recommending an appropriate law firm based on the results of user sentiment analysis.
[0717] "Location information" is data indicating the user's current location, and is obtained using technology such as GPS.
[0718] The "listing means" is a function for displaying a list of nearby law firms based on the user's location information.
[0719] The system for implementing this invention provides a function that allows users to input their situation or an incident into a chat and check whether the content violates civil or criminal law. It also presents the applicable laws and their proof requirements, and directs users to the appropriate law firm's consultation page. It also has a function that analyzes the user's emotions and recommends the most suitable law firm. A specific embodiment of the system is described below.
[0720] System Configuration
[0721] 1. User Device:
[0722] They use devices such as smartphones and smart glasses, which have a chat interface installed on them that allows users to enter information about their situation and events.
[0723] 2. Server:
[0724] The server receives the data sent from the user and performs the following processing.
[0725] Legal verification module: Checks whether the entered information violates civil or criminal law.
[0726] Proof requirement presentation module: Presents the user with the applicable laws and their proof requirements.
[0727] Law firm guide module: Provides guidance to the consultation pages of law firms in the relevant legal field.
[0728] Sentiment Analysis Module: Analyzes user sentiment and recommends the best law firms.
[0729] Location module: Lists nearby law firms based on the user's location.
[0730] Hardware and software used
[0731] Hardware:
[0732] Smartphones, smart glasses, servers
[0733] software:
[0734] Chat interface: an application for users to enter their status
[0735] Sentiment analysis model: A sentiment analysis model using the transformers library
[0736] Get location: Get user location using geopy library
[0737] Legal Database: Uses the some_legal_database library to retrieve legal information
[0738] Processing flow
[0739] 1. User Input:
[0740] Users input their situation and events through a chat interface.
[0741] Example: "I broke my friend's bike."
[0742] 2. Legal Acknowledgement:
[0743] The server's legal verification module checks whether the entered information violates civil or criminal law.
[0744] Example: "Your actions may constitute a civil tort."
[0745] 3. Proof requirements:
[0746] The server's proof requirement presentation module presents the applicable law and its proof requirements to the user.
[0747] For example: "To prove your case, you must prove that you damaged your friend's bike, that your friend suffered damage as a result, and that you were negligent."
[0748] 4. Law firm information:
[0749] The server's law firm guide module guides the user to the consultation page of a law firm in the relevant legal field.
[0750] For example: "The following law firms can assist with your matter."
[0751] 5. Sentiment analysis:
[0752] The server's sentiment analysis module analyzes the user's sentiment and recommends the most suitable law firm.
[0753] For example: "I regret it so much."
[0754] 6. Acquisition of location information:
[0755] The server's location module lists nearby law firms based on the user's location.
[0756] Example: Based on the latitude and longitude of Tokyo, list law firms within 50km.
[0757] Examples and prompts
[0758] Examples:
[0759] If a user types in "I broke my friend's bike" and expresses their feelings by saying "I'm very sorry," the system will suggest that this may constitute a civil tort, explain the proof requirements, and recommend a nearby law firm with integrity.
[0760] Example prompt sentence:
[0761] User Action: I broke my friend's bike
[0762] User sentiment: I regret it so much
[0763] In this way, users can receive fast and appropriate legal advice and find the best law firm based on their emotions and location.
[0764] The flow of the specific processing in Application Example 3 will be described with reference to FIG.
[0765] Step 1:
[0766] Users input their situation and events through a chat interface.
[0767] Input: The user's situation or event (e.g., "I broke my friend's bike")
[0768] Output: Input text data
[0769] Specific actions: Enter text into the chat interface on the user's device and press the send button.
[0770] Step 2:
[0771] The server's legal verification module checks whether the entered information violates civil or criminal law.
[0772] Input: Text data entered by the user
[0773] Output: Judgment result on whether the action violates the law (e.g., "This may constitute a tort under civil law.")
[0774] Specific operation: The server receives the text data and searches for the relevant law by referring to the legal database.
[0775] Step 3:
[0776] The server's proof requirement presentation module presents the applicable law and its proof requirements to the user.
[0777] Input: Legality judgment result
[0778] Output: Information on the proof requirements (e.g., "To prove your case, you must prove that you damaged your friend's bike, that your friend suffered damage as a result, and that you were negligent.")
[0779] Specific operation: The server obtains the proof requirements from the legal database and sends them to the user terminal.
[0780] Step 4:
[0781] The server's law firm guide module guides the user to the consultation page of a law firm in the relevant legal field.
[0782] Input: Legality judgment result
[0783] Output: List of law firms (e.g. "The following law firms can handle your matter")
[0784] Specific operation: The server refers to the law firm database, lists law firms in the relevant legal field, and sends the list to the user's terminal.
[0785] Step 5:
[0786] The server's sentiment analysis module analyzes the user's sentiment and recommends the most suitable law firm.
[0787] Input: Text data expressing the user's feelings (e.g., "I deeply regret it")
[0788] Output: Sentiment analysis results (e.g., "regret") and a list of recommended law firms
[0789] Specific operation: The server analyzes the text data using a sentiment analysis model (transformers library) to identify the sentiment, then selects the most suitable law firm from the law firm database based on the sentiment and sends it to the user's device.
[0790] Step 6:
[0791] The server's location module lists nearby law firms based on the user's location.
[0792] Input: User's location information (e.g., latitude and longitude of Tokyo)
[0793] Output: List of nearby law firms (e.g., "law firms within 50km")
[0794] Specific operation: The server uses a location information acquisition library (geopy) to acquire the user's location information, lists nearby law firms from a law firm database, and sends the list to the user's terminal.
[0795] The specific processing unit 290 transmits the result of the specific processing to the smart device 14. In the smart device 14, the control unit 46A causes the output device 40 to output the result of the specific processing. The microphone 38B acquires audio indicating a user input regarding the result of the specific processing. The control unit 46A transmits audio data indicating the user input acquired by the microphone 38B to the data processing device 12. In the data processing device 12, the specific processing unit 290 acquires the audio data.
[0796] The data generation model 58 is a so-called generative AI (Artificial Intelligence). An example of the data generation model 58 is ChatGPT (registered trademark) (Internet search engine).<URL: https: / / openai.com / blog / chatgpt> ) and other generation AIs. The data generation model 58 is obtained by performing deep learning on a neural network. A prompt including an instruction is input to the data generation model 58, and inference data such as voice data indicating voice, text data indicating text, and image data indicating an image is also input. The data generation model 58 performs inference on the input inference data in accordance with the instruction indicated by the prompt, and outputs the inference result in a data format such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and / or summarization.
[0797] Another example of generative AI is Gemini (registered trademark) (Internet search engine). <url: https: gemini.google.com ?hl="ja">) are listed.
[0798] In the above embodiment, an example in which the specific process is performed by the data processing device 12 has been given, but the technology of the present disclosure is not limited to this, and the specific process may be performed by the smart device 14.
[0799] [Second embodiment]
[0800] FIG. 3 shows an example of the configuration of a data processing system 210 according to the second embodiment.
[0801] 3, the data processing system 210 includes the data processing device 12 and smart glasses 214. An example of the data processing device 12 is a server.
[0802] The data processing device 12 includes a computer 22, a database 24, and a communication I / F 26. The computer 22 is an example of a "computer" according to the technology of the present disclosure. The computer 22 includes a processor 28, a RAM 30, and a storage 32. The processor 28, the RAM 30, and the storage 32 are connected to a bus 34. The database 24 and the communication I / F 26 are also connected to the bus 34. The communication I / F 26 is connected to a network 54. Examples of the network 54 include a WAN (Wide Area Network) and / or a LAN (Local Area Network).
[0803] The smart glasses 214 include a computer 36, a microphone 238, a speaker 240, a camera 42, and a communication I / F 44. The computer 36 includes a processor 46, a RAM 48, and a storage 50. The processor 46, the RAM 48, and the storage 50 are connected to a bus 52. The microphone 238, the speaker 240, and the camera 42 are also connected to the bus 52.
[0804] The microphone 238 receives instructions and the like from the user 20 by receiving voice uttered by the user 20. The microphone 238 captures the voice uttered by the user 20, converts the captured voice into audio data, and outputs it to the processor 46. The speaker 240 outputs audio in accordance with instructions from the processor 46.
[0805] Camera 42 is a small digital camera equipped with an optical system including a lens, aperture, and shutter, and an imaging element such as a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor, and captures images of the surroundings of user 20 (for example, an imaging range defined by an angle of view equivalent to the field of vision of a typical healthy person).
[0806] The communication I / F 44 is connected to a network 54. The communication I / Fs 44 and 26 are responsible for the exchange of various information between the processor 46 and the processor 28 via the network 54. The exchange of various information between the processor 46 and the processor 28 using the communication I / Fs 44 and 26 is carried out in a secure state.
[0807] Fig. 4 shows an example of the main functions of the data processing device 12 and the smart glasses 214. As shown in Fig. 4, in the data processing device 12, a specific process is performed by the processor 28. A specific process program 56 is stored in the storage 32.
[0808] The specific processing program 56 is an example of a "program" according to the technology of the present disclosure. The processor 28 reads the specific processing program 56 from the storage 32 and executes the read specific processing program 56 on the RAM 30. The specific processing is realized by the processor 28 operating as a specific processing unit 290 in accordance with the specific processing program 56 executed on the RAM 30.
[0809] The storage 32 stores a data generation model 58 and an emotion identification model 59. The data generation model 58 and the emotion identification model 59 are used by the identification processing unit 290.
[0810] In the smart glasses 214, the processor 46 performs the reception output process. A reception output program 60 is stored in the storage 50. The processor 46 reads the reception output program 60 from the storage 50 and executes the read reception output program 60 on the RAM 48. The reception output process is realized by the processor 46 operating as the control unit 46A in accordance with the reception output program 60 executed on the RAM 48.
[0811] Next, the specific processing by the specific processing unit 290 of the data processing device 12 will be described.
[0812] "Example 1"
[0813] The system of the present invention provides a means for users to input their own situations and events into the chat. Specifically, a chat box is provided as a user interface, allowing users to freely input text. For example, if a user inputs "Yesterday, I borrowed my friend's bicycle and accidentally broke it," the system will receive this information.
[0814] "Example 2"
[0815] Next, we provide a means to check whether the input content violates civil or criminal law. Specifically, we use natural language processing technology to analyze the user's input and determine whether it may violate the law. For example, in the above example, the information "I borrowed my friend's bicycle and accidentally broke it" is determined to be a "tort" under civil law.
[0816] "Example 3"
[0817] Furthermore, if the behavior violates civil or criminal law, the system provides a means to answer which law applies and hints on how to prove it. Specifically, the system references a legal knowledge base and presents the user with the applicable law and the proof requirements. For example, in the above example, the system provides hints such as, "Your behavior may be considered a tort under civil law. To prove your behavior, you need to prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[0818] "Example 4"
[0819] Finally, the system provides a means to guide the user to the consultation page of a law firm in that field. Specifically, the system refers to a database of registered law firms and presents the user with information on law firms in the relevant legal field. For example, in the above example, the system provides a list of nearby law firms that specialize in torts, stating, "The following law firms can handle your case."
[0820] The processing flow of each embodiment will be described below.
[0821] "Example 1"
[0822] Step 1: A chat box is provided as a user interface. This chat box is designed to allow the user to freely input text.
[0823] Step 2: The user types, "Yesterday, I borrowed my friend's bike and accidentally broke it," and the system takes this information and moves on to the next step.
[0824] "Example 2"
[0825] Step 1: The system uses natural language processing techniques to analyze the user's input.
[0826] Step 2: Based on the analysis results, it is determined whether the input content may violate the law. In this example, the information "I borrowed my friend's bicycle and accidentally broke it" is determined to be a "tort" under the Civil Code.
[0827] "Example 3"
[0828] Step 1: The system consults the legal knowledge base.
[0829] Step 2: Present the user with the applicable laws and the proof requirements. In this example, the system provides hints such as, "Your actions may constitute a tort under civil law. To prove your actions, you must prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[0830] "Example 4"
[0831] Step 1: The system consults a database of registered law firms.
[0832] Step 2: Present the user with information about law firms in the relevant legal field. In this example, the system provides a list of nearby law firms that specialize in torts, stating, "The following law firms can handle your case."
[0833] Example 1
[0834] Next, a description will be given of Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[0835] In modern society, there is a lack of means for users to quickly and appropriately consult about their situations or events that have occurred. Furthermore, there are limited systems that can check whether the information entered by users violates the law and provide appropriate advice. Furthermore, there is a need to eliminate the information divide and provide an environment where everyone can have equal access to information.
[0836] The identification process by the identification processing unit 290 of the data processing device 12 in Example 1 is realized by the following means. In this invention, the server includes a means for a user to input their situation and the event that occurred into the chat, a means for transmitting the input text data to the server, a means for the server to analyze the received text data, a means for the server to input a prompt sentence to the generative AI model, a means for the generative AI model to generate a response, a means for displaying the generated response to the user, a means for checking whether the input content violates civil or criminal law, and if so, a means for providing hints to prove which law applies, and a means for guiding the user to a consultation page for experts in that field. This allows users to quickly and appropriately consult about their situation and the event that occurred, confirm whether the content violates the law, and receive appropriate advice. It also eliminates information gaps and provides an environment in which everyone can equally access information.
[0837] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[0838] A "chat box" is an interface that allows users to freely input text.
[0839] "Text data" is character information entered by the user into the chat box.
[0840] The "server" is a computer system whose role is to receive and analyze text data sent by users and input prompt sentences into the generative AI model.
[0841] "Parsing" is the process by which the server understands the content of the text data it receives and generates an appropriate prompt sentence.
[0842] A "generative AI model" is an artificial intelligence model that generates an appropriate response based on an input prompt.
[0843] A "prompt sentence" is an instruction sentence based on the user's text data that is input into a generative AI model.
[0844] A "response" is a reply or action that a generative AI model generates based on a prompt.
[0845] "Civil Code and Criminal Code" refers to laws that may be violated by the content entered by the user.
[0846] An "expert" is an individual or organization with advanced knowledge and experience in a particular field.
[0847] The "consultation page" is a web page or contact means for users to consult with experts.
[0848] This invention is a system in which a user inputs information about their situation or an event that has occurred into a chat box, analyzes the content, and generates an appropriate response. A specific embodiment of this system will be described below.
[0849] First, the user freely enters text about their situation or the incident that occurred in the chat box provided by the system. For example, they might enter, "Yesterday, I borrowed my friend's bicycle and accidentally broke it."
[0850] Next, the terminal sends the text data entered by the user to the server in an appropriate format (for example, JSON format).
[0851] The server receives and analyzes the text data sent from the device. Natural language processing technology is used to understand the content of the text. Specifically, the server analyzes the text data and creates prompt sentences to input into the generative AI model.
[0852] For example, if the user types "Yesterday I borrowed my friend's bike and accidentally broke it," the server will generate the following prompt:
[0853] The user types, "Yesterday, I borrowed my friend's bike and accidentally broke it." Generate an appropriate response to this situation.
[0854] Next, the server inputs the generated prompt into a generative AI model. Examples of generative AI models that can be used include OpenAI's GPT-4. The generative AI model generates an appropriate response based on the input prompt. For example, it generates a response such as, "It would be a good idea to apologize to your friend and offer to cover the cost of repairs."
[0855] The generated response is sent from the server to the terminal. The terminal displays the response received from the server to the user. The user can check the generated response in the chat box.
[0856] Furthermore, the system has a function to check whether the content entered by the user violates civil or criminal law. If the content entered violates the law, the server will identify which law it falls under and provide hints for proving the case. It also includes a function to direct users to a consultation page with experts in that field.
[0857] For example, if the user types "I made a mistake at work and my boss scolded me," the server will generate the following prompt:
[0858] The user types, "I made a mistake at work and my boss got angry with me." Generate an appropriate response for this situation.
[0859] Based on this prompt, the generative AI model generates a response such as, "It would be a good idea to admit your mistake and tell your boss that you will think of ways to avoid making the same mistake again."
[0860] In this way, the system provides appropriate responses to situations and events entered by the user. This system allows users to consult quickly and appropriately, confirm whether their case violates the law, and receive appropriate advice. It also eliminates information gaps and provides an environment where everyone can have equal access to information.
[0861] The flow of the identification process in the first embodiment will be described with reference to FIG.
[0862] Step 1:
[0863] The user enters text into the chat box.
[0864] Specific operation: The user freely enters text about their situation or the event that occurred in the chat box provided by the system. For example, they can enter, "Yesterday, I borrowed my friend's bicycle and accidentally broke it."
[0865] Input: Text data entered by the user.
[0866] Output: Text data entered in the chat box.
[0867] Step 2:
[0868] The terminal transmits the input text data to the server.
[0869] Specific operation: The terminal sends the text data entered by the user to the server in an appropriate format (for example, JSON format).
[0870] Input: Text data entered into the chat box.
[0871] Output: The text data sent to the server.
[0872] Step 3:
[0873] The server analyzes the received text data.
[0874] Specific operation: The server receives the text data sent from the device and analyzes it using natural language processing technology. As a result of the analysis, it creates a prompt sentence to input into the generative AI model.
[0875] Input: The text data sent to the server.
[0876] Output: The prompt sentence to be input to the generative AI model.
[0877] Step 4:
[0878] The server inputs a prompt sentence into the generative AI model.
[0879] Specific operation: The server inputs a prompt sentence created based on the analyzed text data into the generative AI model. For example, the prompt sentence might read, "The user input, 'Yesterday, I borrowed my friend's bicycle and accidentally broke it.' Please generate an appropriate response to this situation."
[0880] Input: The prompt to be input to the generative AI model.
[0881] Output: The prompt sentence fed into the generative AI model.
[0882] Step 5:
[0883] A generative AI model generates a response.
[0884] Specific behavior: A generative AI model (e.g., OpenAI's GPT-4) generates an appropriate response based on a prompt input from the server, such as "It would be a good idea to apologize to your friend and offer to cover the cost of repairs."
[0885] Input: The prompt sentence fed into the generative AI model.
[0886] Output: The generated response.
[0887] Step 6:
[0888] The server sends the generated response to the terminal.
[0889] Specific operation: The server receives the response generated by the generative AI model and sends it to the terminal in an appropriate format (e.g., JSON format).
[0890] Input: The generated response.
[0891] Output: The response sent to the terminal.
[0892] Step 7:
[0893] The terminal displays the response to the user.
[0894] Specific operation: The terminal displays the response received from the server to the user, and the user can check the generated response in the chat box.
[0895] Input: The response sent to the terminal.
[0896] Output: The response displayed to the user.
[0897] (Application example 1)
[0898] Next, a description will be given of Application Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[0899] In modern society, there is a lack of appropriate means for users to seek advice about their own situations and incidents. There is also a need for a system that provides advice to quickly and accurately resolve security-related problems and questions. Furthermore, it is important to provide information that allows users to take appropriate measures regarding incidents that may violate the law.
[0900] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 1 is realized by the following means.
[0901] In this invention, the server includes means for a user to input their situation and the event that occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law applies if it does violate civil or criminal law, means for directing the user to a consultation page of a law firm in that field, means for analyzing security issues and questions and using a generative AI model to provide appropriate countermeasures and advice, means for sending prompt messages to the generative AI model and generating a response, and means for displaying the generated advice to the user. This allows users to appropriately consult about their situation and problems and receive prompt and accurate advice on security issues and questions.
[0902] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[0903] "Situation" refers to the environment or state that the user is currently facing.
[0904] An "event" refers to an occurrence or incident that a user experiences.
[0905] "Chat" is an interface that allows users to interact with the system by entering text.
[0906] "Input content" refers to text information that a user inputs into a chat.
[0907] "Civil Law and Criminal Law" are laws that determine whether a user's actions or events are legally problematic.
[0908] "Means of verification" is a function to check whether the entered content violates civil or criminal law.
[0909] "Tips for Proving" provides advice and information to help users prove legally binding events.
[0910] A "lawyer's consultation page" is a law firm's web page that users can access to obtain legal advice.
[0911] "Security" refers to issues and questions regarding user safety and information protection.
[0912] A "generative AI model" is an artificial intelligence model that analyzes user input and generates appropriate countermeasures and advice.
[0913] A "prompt" is a text instruction that is input to a generative AI model.
[0914] The "means for generating a response" is the function by which the generative AI model creates an answer based on the prompt sentence.
[0915] The "display means" is a function for showing the generated advice or answer to the user.
[0916] A system for implementing this invention includes means for a user to input their situation or an event that has occurred into a chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law it falls under if it violates civil or criminal law, means for directing the user to the consultation page of a law firm in that field, means for using a generative AI model to analyze security issues and questions and provide appropriate countermeasures and advice, means for sending a prompt to the generative AI model and generating a response, and means for displaying the generated advice to the user.
[0917] Hardware and software used
[0918] Hardware: Smartphones, servers
[0919] Software: Python, OpenAI API
[0920] Data processing and calculation
[0921] 1. User input:
[0922] Users can enter their situation or the incident into the chat box on their smartphone, for example, "I recently saw a suspicious person near my house. What should I do?"
[0923] 2. Data transmission:
[0924] The smartphone sends the entered text to a server, which then checks whether it violates civil or criminal law.
[0925] 3. Use of generative AI models:
[0926] The server sends the input text to a generative AI model (e.g., OpenAI's GPT-3) using the following prompt format:
[0927] A user entered the following security problem: I recently saw a suspicious person near my house. What should I do?
[0928] Please provide appropriate measures and advice.
[0929] 4. Generate response:
[0930] The generative AI model analyzes the prompt and generates appropriate measures and advice, such as, "First, alert your neighbors and contact the police to report the situation. It may also be effective to consider installing security cameras."
[0931] 5. Display Advice:
[0932] The server sends the generated advice to the smartphone and displays it to the user, who can then take appropriate measures.
[0933] Specific examples
[0934] If a user types, "I recently saw a suspicious person near my house. What should I do?", the generative AI model will provide advice such as, "First, warn your neighbors and contact the police to report the situation. You may also want to consider installing a security camera." This advice is displayed on the smartphone, allowing the user to act accordingly.
[0935] In this way, users can appropriately discuss their situations and problems, and receive prompt and accurate advice regarding security-related problems and questions.
[0936] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[0937] Step 1:
[0938] The user enters their situation or the incident into the chat box on their smartphone. For example, they might type, "I recently saw a suspicious person near my house. What should I do?" The entered text is sent to the smartphone application.
[0939] Step 2:
[0940] The smartphone sends the entered text to a server. The server receives this text and first checks whether it violates civil or criminal law. Specifically, it uses a text analysis algorithm to check whether the entered content is legally problematic. The input is the user's text, and the output is the result of a judgment as to whether it violates any legal rules.
[0941] Step 3:
[0942] The server sends the input text to a generative AI model (e.g., OpenAI's GPT-3) using the following prompt format:
[0943] A user entered the following security problem: I recently saw a suspicious person near my house. What should I do?
[0944] Please provide appropriate measures and advice.
[0945] The input is a prompt sentence, and the output is a response from the generative AI model.
[0946] Step 4:
[0947] The generative AI model analyzes the prompt and generates appropriate measures and advice. For example, it generates advice such as, "First, warn your neighbors and contact the police to report the situation. It may also be a good idea to consider installing security cameras." The input is the prompt, and the output is the generated advice.
[0948] Step 5:
[0949] The server sends the generated advice to the smartphone and displays it to the user, who can then take appropriate measures. The input is the generated advice, and the output is the advice displayed on the smartphone.
[0950] In this way, users can appropriately discuss their situations and problems, and receive prompt and accurate advice regarding security-related problems and questions.
[0951] Example 2
[0952] Next, a description will be given of Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[0953] In modern society, it is difficult for ordinary people to determine whether their actions or situations violate the law. Furthermore, when there is a possibility of violating the law, there are limited ways to understand which law applies and to consult with appropriate experts. This leads to a lack of legal knowledge and an information gap.
[0954] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means.
[0955] In this invention, the server includes a means for users to input their own situation and the events that have occurred, a means for using natural language processing technology to analyze the input content, and a means for determining the possibility of violation of civil or criminal law using a generative AI model based on the analysis results, thereby enabling users to quickly determine whether their actions or situations violate the law and obtain information to consult with an appropriate expert.
[0956] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[0957] An "input means" is an interface or device through which a user provides text or information to a system.
[0958] "Natural language processing technology" is a technology that enables computers to understand and analyze human language, and includes tokenization, part-of-speech tagging, dependency analysis, etc.
[0959] A "generative AI model" is an artificial intelligence model trained to perform specific tasks based on input data, and is used here to determine potential legal violations.
[0960] "Civil and criminal law" refers to laws that regulate the conduct and relationships of individuals and organizations, and includes civil law and criminal law.
[0961] The "means of determination" is the process of using a generative AI model based on the analysis results to assess the likelihood that the input content violates the law.
[0962] The "means for providing a hint" is a function that indicates to the user which law the input content falls under and provides the user with information and advice to prove the point.
[0963] The "means for guiding to a page for expert consultation" is a function that provides a web page or contact information for users to seek expert legal advice.
[0964] This invention is a system that allows users to input their own situation or the events that have occurred and determines whether the content violates civil or criminal law. The system analyzes the content entered by the user and, if there is a possibility of a violation of the law, indicates which law it falls under and provides hints for proving the case. It also directs users to a page where they can seek advice from an expert, if necessary.
[0965] Hardware and software used
[0966] Hardware: Server
[0967] Software: Natural language processing libraries (e.g., spaCy, NLTK), generative AI models (e.g., GPT-3)
[0968] Program processing flow
[0969] 1. User input: The user inputs text into the system through a terminal, for example, "I was borrowing my friend's bicycle and accidentally broke it."
[0970] 2. Sending data: The device sends the user's input to the server, where it is packaged in JSON format.
[0971] 3. Data analysis: The server receives the input and analyzes it using natural language processing libraries, such as text tokenization, part-of-speech tagging, and dependency analysis.
[0972] 4. Legal collation: Based on the analysis results, the server uses a generative AI model to determine whether the input content may violate civil or criminal law. For example, if someone says, "I borrowed my friend's bicycle and accidentally broke it," the server determines that this may constitute a "tort" under civil law.
[0973] 5. Returning the results: The server returns the results to the device, packaged in JSON format.
[0974] 6. Notification to the user: The device receives the result from the server and displays it to the user. For example, it displays a message saying, "This action may be a tort under civil law."
[0975] Specific examples
[0976] Example: "I borrowed my friend's bike and accidentally broke it."
[0977] Analysis results: The text was analyzed using natural language processing technology, and the generative AI model determined that it may constitute "illegal activity."
[0978] Sample output: "This action may constitute a civil tort."
[0979] Prompt Sentence Examples
[0980] Prompt: "Judge whether the following text violates civil or criminal law. Text: 'I was borrowing my friend's bicycle and accidentally broke it.'"
[0981] This system quickly determines whether the content entered by the user violates the law and provides information to help the user consult with an appropriate expert.
[0982] The flow of the identification process in the second embodiment will be described with reference to FIG.
[0983] Step 1:
[0984] A user enters text into an input field on the device. For example, "I was borrowing my friend's bicycle and accidentally broke it." The input is saved in text format on the device.
[0985] Step 2:
[0986] The device converts the input data into JSON format and sends it to the server as an HTTP POST request. The input data is stored in the "text" field and sent to the server.
[0987] Step 3:
[0988] The server receives an HTTP request and parses the JSON-formatted data. Specifically, it uses a natural language processing library (e.g., spaCy) to tokenize the text and perform part-of-speech tagging and dependency analysis. The input data is converted into tokenized text and tagging information as the analysis results.
[0989] Step 4:
[0990] The server uses a generative AI model (e.g., GPT-3) based on the analysis results to determine whether the input content is likely to violate civil or criminal law. The generative AI model receives the analysis results as input and evaluates the likelihood of violating the law. The output is a judgment such as "there is a possibility that this constitutes an illegal act."
[0991] Step 5:
[0992] The server converts the result of the judgment into JSON format and returns it to the terminal as an HTTP response. The result of the judgment is packaged as a message such as "This action may constitute a tort under civil law."
[0993] Step 6:
[0994] The device receives the response from the server and displays the result to the user. Specifically, the web browser or mobile app screen displays the message "This action may be illegal under the Civil Code."
[0995] (Application example 2)
[0996] Next, a description will be given of Application Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[0997] In modern society, users may unintentionally include content that violates the law in their everyday text communications (e.g., social media posts and business emails). In such cases, it is difficult for users to recognize legal risks in advance, resulting in a higher risk of becoming embroiled in legal trouble. Furthermore, the means for obtaining expert advice are limited, making it difficult to respond quickly and appropriately. To solve these issues, there is a need for a system that can analyze the text content entered by users in real time and evaluate legal risks.
[0998] The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means. In this invention, the server includes means for a user to input their situation and the event that occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law the content falls under if it violates civil or criminal law, means for guiding the user to a consultation page for experts in that field, means for sending the text data input by the user to a natural language processing engine and analyzing the text, means for evaluating whether the text may violate the law based on the analysis results, and means for providing feedback of the evaluation results to the user in real time. This allows the user to recognize legal risks in advance and take prompt and appropriate action.
[0999] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[1000] "Means for inputting into chat" refers to an interface for users to input text data, including keyboard input on a smartphone or computer.
[1001] "Means to check whether the entered content violates civil or criminal law" refers to algorithms or programs that analyze the text data entered by the user and determine whether it violates any law.
[1002] "Means of providing hints to prove which law it falls under" is a function that, when the entered text violates the law, presents the specific name of the law and related legal provisions, explaining it in a way that is easy for the user to understand.
[1003] "Means of directing users to consultation pages of experts in that field" is a function that provides consultation pages and contact information of relevant experts (e.g., lawyers) when a user becomes aware of a legal risk.
[1004] A "natural language processing engine" is an artificial intelligence technology that analyzes text data entered by a user and understands its meaning and context, and includes, for example, Google Cloud Natural Language API and OpenAI GPT-4.
[1005] A "means for analyzing text" is a program that uses a natural language processing engine to analyze the content of text data entered by a user and understand its meaning and context.
[1006] "Means for assessing whether text may violate the law" refers to algorithms or programs that use analyzed text data to determine whether it may violate the law.
[1007] "Means for providing real-time feedback of evaluation results to users" refers to a function that immediately notifies users of the results of text analysis and displays a warning message if there is a legal risk.
[1008] A system for carrying out the present invention analyzes text data entered by a user in real time and evaluates legal risks. A specific embodiment of the system will be described below.
[1009] System configuration
[1010] 1. Hardware:
[1011] User devices: smartphones (iOS or Android), computers
[1012] Server: Cloud server (e.g., Amazon Web Services, Google Cloud Platform)
[1013] 2. Software:
[1014] Natural language processing engine: Google Cloud Natural Language API, OpenAI GPT-4
[1015] Mobile app development frameworks: React Native, Flutter
[1016] System Operation
[1017] 1. User input:
[1018] Users use their smartphones or computers to enter information about their situations and events in chat format, such as messages they plan to post on social networking sites or business emails.
[1019] 2. Data transmission:
[1020] The user terminal transmits the input text data to the server, and the server transmits the received text data to the natural language processing engine.
[1021] 3. Text Analysis:
[1022] The server uses a natural language processing engine (Google Cloud Natural Language API or OpenAI GPT-4) to analyze the text data, and the analysis results include the meaning and context of the text, as well as any associated legal risks.
[1023] 4. Legal Risk Assessment:
[1024] Based on the analysis results, the server evaluates whether the text may violate civil or criminal law, specifically by determining whether it contains specific keywords or phrases based on the context.
[1025] 5. User Feedback:
[1026] The server provides the evaluation results to the user in real time, for example by displaying a warning message such as "This content may be considered illegal."
[1027] Specific examples
[1028] If a user enters a message to post on a social networking site, such as "I was borrowing my friend's bicycle and accidentally broke it," the system operates as follows:
[1029] 1. The user enters a message.
[1030] 2. The user device sends a message to the server.
[1031] 3. The server sends the message to the natural language processing engine.
[1032] 4. A natural language processing engine analyzes the message and determines that it may constitute "illegal activity."
[1033] 5. The server displays a warning to the user saying, "This content may be illegal."
[1034] Prompt Sentence Examples
[1035] Below is an example of a prompt sentence to input to the generative AI model.
[1036] Please determine whether the following text is legal.
[1037] Text: "I borrowed my friend's bike and accidentally broke it."
[1038] In this way, users can be aware of legal risks in advance and take prompt and appropriate action.
[1039] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[1040] Step 1:
[1041] Users input their situation and events in chat format. The input text data is acquired through the input interface of the user's device (smartphone or computer keyboard). The input data is temporarily saved in the user's device.
[1042] Step 2:
[1043] The user terminal sends the input text data to the server, which receives the data and prepares it for analysis. Specifically, the format of the text data is standardized and converted into a format suitable for the natural language processing engine.
[1044] Step 3:
[1045] The server sends the received text data to a natural language processing engine (e.g., Google Cloud Natural Language API or OpenAI GPT-4). The natural language processing engine analyzes the text data and understands its meaning and context. The analysis results include sentiment analysis of the text, keyword extraction, and context understanding.
[1046] Step 4:
[1047] The server receives the analysis results from the natural language processing engine and uses them to evaluate whether the text may violate civil or criminal law. Specifically, the server applies an algorithm that determines legal risk based on the context, such as whether the text contains specific keywords or phrases.
[1048] Step 5:
[1049] The server provides real-time feedback to the user based on the evaluation results. For example, if the text is likely to constitute an illegal act, it generates a warning message stating, "This content may constitute an illegal act." The generated message is then sent to the user's device.
[1050] Step 6:
[1051] The user terminal displays the feedback message received from the server. The user checks the displayed warning message and corrects the text content as necessary, or accesses an expert consultation page. When the user accesses the expert consultation page, the server provides information on related experts.
[1052] Step 7:
[1053] When a user accesses the expert consultation page, the server recommends an appropriate expert based on the user's input and analysis results. The user is then provided with the contact information for the recommended expert and the URL of the consultation page. The user can then consult with the expert based on the information provided.
[1054] In this way, users can be aware of legal risks in advance and take prompt and appropriate action.
[1055] Example 3
[1056] Next, a description will be given of Example 3 of Form Example 3. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[1057] In today's society, it is difficult for ordinary people to quickly and accurately determine whether their actions violate the law. It is also difficult for them to understand what proof is required if they violate the law. Furthermore, there are limited ways to obtain information to consult with appropriate experts. To solve these problems, a system that is easily accessible to users is needed.
[1058] The specific processing by the specific processing unit 290 of the data processing device 12 in the third embodiment is realized by the following means.
[1059] In this invention, the server includes means for a user to input their situation and the events that occurred, means for checking whether the input content violates the law, means for responding to which law it falls under and hints for proving it if it does violate the law, means for generating the applicable law and its proof requirements using a generative AI model, and means for guiding users to a consultation page for experts in the relevant legal field. This enables users to quickly determine whether their actions violate the law, understand the necessary proof requirements, and obtain information for consulting with an appropriate expert.
[1060] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[1061] A "situation" refers to a specific event or occurrence that a user is facing.
[1062] An "event" refers to a specific occurrence or action experienced by a user.
[1063] "Input means" refers to the interface or device that allows the user to communicate their situation or events to the system.
[1064] "Means of verification" refers to the system's ability to analyze information entered by the user and determine whether that information violates the law.
[1065] "Law" refers to legal provisions, including civil law, criminal law, and other legal norms.
[1066] "Tips for Proving" refers to advice that shows the information and requirements necessary for a user to prove that their actions violate the law.
[1067] "Generative AI model" refers to an algorithm or system that uses artificial intelligence technology to analyze user input and generate applicable laws and evidentiary requirements.
[1068] "Expert" refers to a lawyer or legal consultant who has specialized knowledge and experience in a legal field.
[1069] "Consultation Page" refers to an online resource that provides web pages and contact information for users to consult with experts.
[1070] This invention is a system that allows users to input their own situation and the events that have occurred, check whether they violate the law, present the necessary proof requirements, and guide them to a page where they can seek advice from an appropriate expert. This system is implemented using the following hardware and software.
[1071] Hardware and software used
[1072] Server: Manages the legal knowledge base using a database management system (e.g., MySQL or PostgreSQL) and provides the computational resources to run generative AI models (e.g., OpenAI's GPT-4).
[1073] Terminal: A device (e.g., a PC, smartphone, or tablet) through which a user enters information. The terminal accesses the system via a web browser.
[1074] Generative AI model: An artificial intelligence algorithm that analyzes user input and generates applicable laws and their evidentiary requirements.
[1075] Specific operation of the system
[1076] 1. User enters information:
[1077] The user opens a web browser on the device and accesses the system's web page. They enter their situation and the incident into the input form and click the submit button. For example, they might enter, "I broke my friend's bicycle."
[1078] 2. The device sends the information to the server:
[1079] The device sends the information entered by the user to the server using the HTTPS protocol. The data is encrypted and reaches the server safely.
[1080] 3. The server analyzes the information and generates and sends a prompt to the generative AI model:
[1081] The server analyzes the received information and generates a prompt to send to the generative AI model, such as, "If I damage my friend's bicycle, what law does that apply to me and what proof is required?"
[1082] 4. The generative AI model generates the applicable law and evidentiary requirements:
[1083] The generative AI model generates the relevant law and proof requirements based on the prompt text. For example, it generates an answer such as, "Your actions may constitute a tort under civil law. Proof requires that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[1084] 5. The server presents the generated information to the user:
[1085] The server presents the information received from the generative AI model to the user, who can then review the applicable laws and proof requirements on their device screen.
[1086] 6. The server will direct you to the appropriate expert consultation page:
[1087] The server refers to a database of registered experts and presents the user with a list of nearby experts who are knowledgeable about torts, saying, "The following experts can handle your problem." The user can check the list of experts on the screen of their device and access the consultation page.
[1088] Specific examples
[1089] If the user types "I broke my friend's bike," the server will send the following prompt to the generative AI model:
[1090] "If I damage my friend's bike, what law does that apply to and what are the proof requirements?"
[1091] The generative AI model generates answers like this:
[1092] "Your actions may constitute a tort under civil law. To prove this, you need to prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[1093] In this way, users can quickly determine whether their actions violate the law, understand the necessary proof requirements, and obtain information to consult with an appropriate expert. The flow of the identification process in the third embodiment will be described with reference to FIG.
[1094] Step 1:
[1095] The user enters information
[1096] The user opens a web browser on their device and accesses the system's web page. They enter their situation and the events that occurred in the input form and click the submit button. For example, they might enter "I broke my friend's bicycle." The input data is saved in text format on the device.
[1097] Step 2:
[1098] The device sends the information to the server
[1099] The terminal sends the information entered by the user to the server using the HTTPS protocol. The sent data is encrypted, so it arrives safely at the server. The input data is sent to the server in text format.
[1100] Step 3:
[1101] The server analyzes the information and generates and sends a prompt to the generative AI model.
[1102] The server analyzes the received information and generates a prompt to send to the generative AI model. For example, it generates a prompt such as, "If I damage my friend's bicycle, what law does that apply and what proof is required?" The input data is analyzed in text format to generate a prompt.
[1103] Step 4:
[1104] A generative AI model generates applicable law and evidentiary requirements.
[1105] The generative AI model generates the relevant law and proof requirements based on the prompt. For example, it generates an answer such as, "Your actions may constitute a tort under civil law. Proof requires that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent." The input data is the prompt, and the output data is the generated legal information and proof requirements.
[1106] Step 5:
[1107] The server presents the generated information to the user
[1108] The server presents the information received from the generative AI model to the user, who can check the applicable laws and evidentiary requirements on their device screen. The input data is the generated legal information and evidentiary requirements, and the output data is the text information presented to the user.
[1109] Step 6:
[1110] The server will direct you to the appropriate specialist consultation page.
[1111] The server refers to a database of registered experts and presents the user with a list of nearby experts who are knowledgeable in torts, saying, "The following experts can handle your problem." The user can check the list of experts on the screen of their device and access the consultation page. The input data is the database information of experts, and the output data is the list of experts presented to the user.
[1112] (Application example 3)
[1113] Next, a description will be given of Application Example 3 of Form Example 3. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[1114] In modern society, users are expected to quickly determine whether their actions violate the law and take appropriate action. However, it is difficult for ordinary users who lack legal knowledge to do this on their own. It is also not easy to find an appropriate law firm. This can result in users being unable to respond quickly and appropriately when faced with a legal problem, which can result in them suffering disadvantages.
[1115] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 3 is realized by the following means.
[1116] In this invention, the server includes a means for a user to input their situation and the events that have occurred into the chat, a means for checking whether the input content violates civil or criminal law, a means for responding to the user if it violates civil or criminal law and providing hints on how to prove the violation, a means for directing the user to a consultation page of a law firm in that field, a means for determining in real time whether the user's actions violate the law, a means for presenting the applicable law and the proof requirements, a means for providing information on law firms in that field as needed, and an application to be installed on a smartphone. This allows the user to quickly determine whether their actions violate the law and take appropriate action.
[1117] "User" refers to any individual or legal entity that uses the System.
[1118] A "situation" refers to a specific event or environment that a user is facing.
[1119] An "event" refers to a specific occurrence or action experienced by a user.
[1120] "Chat" refers to a text-based means of communication.
[1121] "Input" refers to the act of a user providing information to a system.
[1122] "Civil Code" refers to the law that stipulates the rights and obligations between individuals.
[1123] "Criminal law" refers to laws that define crimes and their punishments.
[1124] "Validation" refers to the act of verifying whether entered information meets certain criteria.
[1125] A "hint" is a clue or advice that helps a user solve a problem.
[1126] "Law firm" refers to an institution that provides professional legal services.
[1127] The "consultation page" refers to a web page where a user can make a consultation with a law firm.
[1128] "Real-time" refers to near-simultaneous processing and response.
[1129] "Requirements of proof" refers to the conditions or evidence necessary to prove a particular violation of law.
[1130] "Information" refers to user-provided and system-generated data.
[1131] "Providing" refers to the act of giving information or services to a user.
[1132] A "smartphone" refers to a mobile phone that can connect to the Internet and use applications.
[1133] "Application" refers to software that provides specific functions or services.
[1134] The system for implementing this invention provides a function that allows users to input their situation or an incident into a chat and check whether the content violates civil or criminal law. It also has a function that presents the applicable law and its proof requirements, and if necessary, directs users to the consultation page of a law firm in that field.
[1135] System configuration
[1136] The system consists of the following major components:
[1137] 1. User device: A mobile information terminal such as a smartphone.
[1138] 2. Server: Holds the legal knowledge base and the database of law firms and processes input from users.
[1139] 3. Application: Software installed on your smartphone.
[1140] Hardware and Software
[1141] Hardware: Smartphone (e.g. iPhone, Android device)
[1142] Software: Python, JSON, requests library
[1143] Data processing and calculation
[1144] 1. User terminal: The user inputs their situation and events in chat format.
[1145] 2. Server: Receives user input, consults a legal knowledge base to identify applicable laws and evidentiary requirements, and, if necessary, consults a database of law firms to provide information on appropriate law firms.
[1146] 3. Application: Displays results to the user in real time and provides the necessary information.
[1147] Specific examples
[1148] For example, if a user enters "I broke my friend's bike," the system will operate as follows:
[1149] 1. Information entered on the user terminal is sent to the server.
[1150] 2. The server consults its legal knowledge base to determine whether the activity constitutes a "tort."
[1151] 3. If applicable, present the user with the requirements of proof (act, damage, negligence).
[1152] 4. In addition, we will refer to a database of law firms and provide information on appropriate law firms.
[1153] Prompt Sentence Examples
[1154] "Please create a system that determines whether the user's actions violate the law and presents the applicable law and the proof requirements. Also, please add a function that directs users to the consultation page of a law firm that specializes in that field."
[1155] In this way, users can quickly determine whether their actions violate the law and take appropriate action.
[1156] The flow of the specific processing in Application Example 3 will be described with reference to FIG.
[1157] Step 1:
[1158] The user enters their situation and the events that have occurred into a chat application on their smartphone.
[1159] Input: Text information entered by the user (e.g., "I broke my friend's bike")
[1160] Output: The entered text information is sent to the server.
[1161] Step 2:
[1162] The server receives the text information sent by the user.
[1163] Input: Text information sent by the user
[1164] Output: Text information is ready to be processed in the server
[1165] Step 3:
[1166] The server analyzes the received text information and checks the applicable law by referring to a legal knowledge base.
[1167] Input: Received text information
[1168] Data processing: Using text analysis algorithms to extract important keywords from text information
[1169] Output: Information on applicable laws based on extracted keywords
[1170] Step 4:
[1171] The server presents the user with the applicable law and its proof requirements.
[1172] Input: Information and substantive requirements of applicable law
[1173] Output: A text message informing the user of the applicable law and proof requirements.
[1174] Step 5:
[1175] The server refers to the law firm database as needed to obtain information on the appropriate law firm.
[1176] Input: Applicable legal information
[1177] Data processing: Query a database of law firms to find law firms in your field
[1178] Output: A list of suitable law firms
[1179] Step 6:
[1180] The server provides the acquired law firm information to the user.
[1181] Input: Law firm list
[1182] Output: A text message displaying the law firm's information to the user
[1183] Step 7:
[1184] The user takes necessary action based on the information provided.
[1185] Input: Legal information and law firm information provided by the server
[1186] Output: Actions that the user can take to take appropriate action
[1187] In this way, users can quickly determine whether their actions violate the law and take appropriate action.
[1188] Furthermore, an emotion engine that estimates the user's emotion may be further combined. That is, the identification processing unit 290 may estimate the user's emotion using the emotion identification model 59, and perform identification processing using the user's emotion.
[1189] "Example 1"
[1190] One embodiment of the present invention is a system incorporating an emotion engine. In this system, when a user enters information about their situation or an incident into a chat, the emotion engine analyzes the user's emotion from the text. For example, if a user enters, "Yesterday, I borrowed my friend's bicycle and accidentally broke it. I really regret it," the emotion engine will recognize the emotion "regret."
[1191] "Example 2"
[1192] The results of the emotion engine's analysis are used to determine whether the system is likely to violate the law. In the example above, the emotion of "regret" indicates that the user recognizes that their actions were wrong. This allows the system to determine that the user's actions are likely to constitute a "tort" under civil law.
[1193] "Example 3"
[1194] Furthermore, the emotion engine recommends the most suitable law firm based on the user's emotions. In the example above, the emotion of "regret" indicates the user's desire to correct their actions and compensate for the damage. For such a user, the engine recommends a law firm that values honesty in its dealings.
[1195] The processing flow of each embodiment will be described below.
[1196] "Example 1"
[1197] Step 1: The user enters their situation and the incident into the chat.
[1198] Step 2: The emotion engine analyzes the user's emotion from the input text.
[1199] "Example 2"
[1200] Step 1: The emotion engine analysis results are sent to the system.
[1201] Step 2: The system determines the possibility of legal violations based on the analysis results.
[1202] "Example 3"
[1203] Step 1: The emotion engine analyzes the user's emotions.
[1204] Step 2: The emotion engine recommends the most suitable law firm based on the analysis results.
[1205] Example 1
[1206] Next, a description will be given of Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[1207] In modern society, there is a demand for systems that allow users to easily record their own situations and events, and receive necessary legal advice and emotional feedback. However, current systems lack the means to check whether the content entered by the user is legally problematic, or to analyze emotions and provide feedback. This can prevent users from receiving appropriate advice, and can lead to an information gap.
[1208] The specific processing by the specific processing unit 290 of the data processing device 12 in the first embodiment is realized by the following means.
[1209] In this invention, the server includes means for users to input their situation and the events that have occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law applies if it does violate civil or criminal law, means for directing the user to a consultation page with experts in that field, means for analyzing the input text and identifying the user's emotions, and means for providing feedback on the identified emotions to the user. This allows users to easily record their situation and receive legal advice and emotional feedback.
[1210] A "user" is an individual or group that uses the system to enter information about their situation or events that have occurred into the chat.
[1211] "Means for inputting text into chat" is a function that provides an interface for users to input text.
[1212] "Means to check whether the entered content violates civil or criminal law" is a function that analyzes the text entered by the user and determines whether there are any legal issues.
[1213] "Means of answering which law applies and hints on how to prove it" is a function that provides information on the applicable law and how to prove it if the content entered is legally problematic.
[1214] The "means for guiding to a page for consulting an expert" is a function for guiding to a web page of an expert that the user can consult when they have a legal problem.
[1215] The "means for analyzing input text and identifying the user's emotions" is a function that uses natural language processing technology to analyze the text input by the user and identify the emotions.
[1216] The "means for providing feedback of the identified emotion to the user" is a function for notifying the user of the emotion identified by the analysis.
[1217] This invention is a system that allows users to input their own situations and events into a chat, checks whether the content is legally problematic, and provides legal advice and emotional feedback as necessary. A specific embodiment of this system is described below.
[1218] First, a user freely enters text about their situation or the incident into a chat box on a web browser or mobile application. For example, they might type, "Yesterday, I borrowed my friend's bicycle and accidentally broke it. I really regret it."
[1219] The terminal (user's device) then transmits the entered text in real time to the server, using the HTTPS protocol to transmit data securely.
[1220] The server analyzes the received text data and first checks whether the entered content violates civil or criminal law. This analysis is performed using natural language processing (NLP) technology, specifically software such as Google Cloud Natural Language API and IBM Watson Natural Language Understanding.
[1221] If the entered content is legally questionable, the server will provide the user with hints on how to prove which law it falls under, and will also direct them to a consultation page with experts in that field.
[1222] At the same time, the server uses an emotion engine to analyze the user's emotions from the input text. The emotion engine identifies emotions based on the context and keywords of the text, such as "regret," "sadness," and "joy."
[1223] The emotion identified as a result of the analysis is fed back to the user from the server. The user can check the analysis results in a chat box. For example, a message such as "The emotion 'regret' has been detected from your input" will be displayed.
[1224] For example, consider the following prompt:
[1225] User: "I borrowed my friend's bike yesterday and accidentally broke it. I really regret it."
[1226] Terminal: Sends entered text to the server.
[1227] Server: Passes the received text to the emotion engine.
[1228] Emotion engine: Analyzes text and identifies the emotion "regret."
[1229] Server: Returns the analysis results to the user.
[1230] User: The chat box displays, "The emotion 'regret' has been detected in your input."
[1231] In this way, the system analyzes emotions from the text entered by the user and provides appropriate feedback.
[1232] The flow of the identification process in the first embodiment will be described with reference to FIG.
[1233] Step 1:
[1234] The user enters text into the chat box.
[1235] Input: Text entered by the user (e.g., "Yesterday, I borrowed my friend's bike and accidentally broke it. I really regret it.")
[1236] Output: The input text data
[1237] Specific operation: The user freely enters text about their situation or the events that occurred in the chat box on the web browser or mobile application.
[1238] Step 2:
[1239] The terminal sends the entered text to the server.
[1240] Input: Text data entered by the user
[1241] Output: Text data sent to the server
[1242] How it works: The terminal (user's device) sends the entered text to the server in real time, using the HTTPS protocol to send data securely.
[1243] Step 3:
[1244] The server passes the received text to the emotion engine.
[1245] Input: Text data sent to the server
[1246] Output: Text data passed to the emotion engine
[1247] Specific operation: The server passes the received text data to the emotion engine, which is a software component for analyzing text using natural language processing (NLP) techniques.
[1248] Step 4:
[1249] The emotion engine analyzes the text and identifies the user's emotion.
[1250] Input: Text data passed to the emotion engine
[1251] Output: Identified emotion (e.g., "regret")
[1252] What it does: The emotion engine analyzes text and identifies the user's emotions, such as "regret," "sadness," and "joy." This analysis is based on the context and keywords in the text.
[1253] Step 5:
[1254] The server returns the analysis results to the user.
[1255] Input: Identified emotion
[1256] Output: The analysis results returned to the user (e.g., "The emotion 'regret' was detected from your input.")
[1257] Specific operation: The server returns the analysis results obtained from the emotion engine to the user, who can then check the analysis results in the chat box.
[1258] (Application example 1)
[1259] Next, a description will be given of Application Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[1260] In conventional systems, when users input their own situations or incidents, there was a lack of a way to check whether the content violated the law. Furthermore, the system lacked the ability to analyze users' emotions and generate appropriate security alerts. This made it difficult to respond quickly when users felt anxious or scared.
[1261] The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 1 is realized by the following means. In this invention, the server includes: means for a user to input their situation and the event that occurred into the chat; means for checking whether the input content violates civil or criminal law; means for providing hints to prove which law applies if it does; means for guiding the user to a consultation page of a law firm in that field; means including an emotion engine for analyzing the user's emotions from the input text; and means for generating a security alert based on the analyzed emotions. This makes it possible to quickly issue a security alert through emotion analysis while checking whether the user has violated the law.
[1262] "User" refers to any individual or legal entity that uses the System.
[1263] "Situation" refers to the events or environment that the user is currently facing.
[1264] An "incident" refers to a specific occurrence or event experienced by a user.
[1265] "Chat" refers to a means by which users communicate by inputting text.
[1266] "Input content" refers to text information entered by a user into a chat.
[1267] "Civil and Criminal Law" refers to the laws that may be violated by the User's actions or events.
[1268] "Means of verification" refers to the function of checking whether the entered content violates the law.
[1269] "Proof tips" refers to supplementary information that helps users determine whether they are in violation of the law.
[1270] "Law firm consultation page" refers to a web page where users can seek legal advice.
[1271] "Emotion engine" refers to software for analyzing a user's emotions from input text.
[1272] "Security alert" refers to a warning message sent based on the results of user sentiment analysis.
[1273] A system for implementing this invention includes means for a user to input their situation or an event that has occurred into a chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law it falls under if it violates civil or criminal law, means for directing the user to a consultation page of a law firm in that field, means including an emotion engine that analyzes the user's emotions from the input text, and means for generating a security alert based on the analyzed emotions.
[1274] Program processing explanation
[1275] The server receives the text entered by the user in the chat box and first checks whether the content violates civil or criminal law. This check is done using natural language processing technology. Specifically, it uses OpenAI's API to analyze the text and determine whether it may violate the law.
[1276] Next, if the entered text violates a law, it will identify which law it falls under and provide hints to the user on how to prove it, helping the user to obtain appropriate legal advice.
[1277] Furthermore, an emotion engine is used to analyze the user's emotions from the input text. This emotion engine uses an emotion analysis library such as TextBlob to analyze the emotions of the text. Based on the analysis results, if the user is feeling strong anxiety or fear, a security alert is generated.
[1278] Hardware and software used
[1279] Hardware: Smartphones, servers
[1280] Software: Python, OpenAI API, TextBlob
[1281] Specific examples
[1282] For example, if a user types, "I've been seeing some suspicious people around my house lately. It's making me feel uneasy," the system might process it as follows:
[1283] 1. Type: "I've been seeing some suspicious people around my house lately. It's making me very uneasy."
[1284] 2. Legal confirmation: Check whether the entered information violates the law
[1285] 3. Sentiment Analysis: Analyze the sentiment of the text using TextBlob and determine the polarity as -0.7 (anxiety)
[1286] 4. Security Alert: Generate an alert saying "Security Alert: User feels very uneasy."
[1287] Prompt Sentence Examples
[1288] "If a user types, 'I've been seeing suspicious people around my house lately. I'm feeling very uneasy,' use an emotion engine to analyze the emotion and generate a security alert."
[1289] In this way, a system can be realized that analyzes user input, performs legal verification and sentiment analysis as necessary, and generates appropriate alerts.
[1290] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[1291] Step 1:
[1292] The user enters text into the chat box. The entered text describes the user's situation or the event that occurred. For example, the user might enter, "I've been seeing suspicious people around my house lately. I'm feeling very uneasy."
[1293] Step 2:
[1294] The server receives the text entered by the user, which is then passed to the next processing step.
[1295] Step 3:
[1296] The server analyzes the received text and checks whether it violates civil or criminal law. This check is performed using natural language processing using the OpenAI API. Input: User's text. Output: Determination result of whether it violates the law.
[1297] Step 4:
[1298] If the server determines that the content violates the law, it identifies which law it violates and provides the user with hints to prove their case. Input: Text determined to be in violation of the law. Output: The applicable law and hints to prove their case.
[1299] Step 5:
[1300] The server uses the emotion engine to analyze the user's emotion from the input text. Specifically, it uses the TextBlob library to analyze the emotion of the text. Input: User's text. Output: Emotion analysis result (e.g. polarity is -0.7).
[1301] Step 6:
[1302] If the server determines that the user is feeling strong anxiety or fear based on the emotion analysis results, it generates a security alert. Input: Emotion analysis results. Output: Security alert message (e.g., "Security alert: The user is feeling strong anxiety.").
[1303] Step 7:
[1304] The server notifies the user of the generated security alert. Possible notification methods include push notifications on smartphones and emails. Input: Security alert message. Output: Notification to the user.
[1305] In this way, a system can be realized that analyzes user input, performs legal verification and sentiment analysis as necessary, and generates and notifies appropriate alerts.
[1306] Example 2
[1307] Next, a description will be given of Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[1308] In modern society, it is difficult for ordinary people to determine whether their actions or situations violate the law. It is also difficult for them to understand which laws apply and obtain information to take appropriate action when they do. Furthermore, when emotional factors are involved, it is difficult to understand how emotions affect legal judgments. A system that can solve these problems is needed.
[1309] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means.
[1310] In this invention, the server includes means for a user to input their situation and the events that have occurred, means for analyzing the input content using natural language processing technology, means for checking whether the analyzed content violates civil or criminal law, means for checking against a legal database to determine the applicable law, means for analyzing the user's emotions using an emotion analysis engine, means for providing hints to prove which law may apply if there is a possibility of a violation, and means for directing the user to a consultation page with experts in that field. This allows the user to quickly and accurately determine whether their actions or situation violate the law and obtain information to take appropriate action.
[1311] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[1312] "Input means" refers to an interface that allows a user to provide information about their situation or events that have occurred to the system in the form of text, voice, or the like.
[1313] "Natural language processing technology" refers to technology that enables computers to understand and analyze human language, and includes text tokenization and grammatical analysis.
[1314] The "means for analyzing" is a function for tokenizing the user's input using natural language processing technology and performing grammatical analysis.
[1315] "Means of confirmation" is a function to determine whether the analyzed content violates civil or criminal law.
[1316] A "legal database" is a database containing legal provisions such as civil and criminal laws, and is used by the system to verify input content.
[1317] The "means of matching" is a function for comparing the analyzed content with a legal database and identifying the applicable law.
[1318] An "emotion analysis engine" is a technology for extracting and analyzing emotions from user input.
[1319] "Means for analyzing emotions" is a function that uses an emotion analysis engine to identify the user's emotions and reflects the results in the system.
[1320] The "means of answering hints" is a function that indicates which law applies when there is a possibility of violating the law, and provides information that allows the user to take appropriate action.
[1321] The "means for guiding to a page for expert consultation" is a function for guiding a user to a page for receiving expert legal consultation.
[1322] This invention is a system that allows users to input their own situation or incidents and check whether the content violates civil or criminal law. The system uses natural language processing technology to analyze the user's input and compares it with a legal database to determine the applicable law. It also uses an emotion analysis engine to analyze the user's emotions, and if there is a possibility of a violation of the law, it provides hints to prove which law applies and directs users to a page for expert consultation.
[1323] Hardware and software used
[1324] Hardware
[1325] Server: a computer system for performing data processing and analysis
[1326] Terminal: A device used by a user to input information (e.g., a computer or smartphone)
[1327] software
[1328] Natural language processing libraries: Python's "spaCy" and "NLTK"
[1329] Sentiment analysis engine: Google Cloud Natural Language API
[1330] Legal database: Civil and criminal law database
[1331] Data processing and calculation
[1332] Natural Language Processing
[1333] The server uses a natural language processing library to tokenize the text received from the user and perform grammatical analysis. Specifically, it breaks the text down into words and phrases and analyzes each part of speech and grammatical structure.
[1334] Legal database matching
[1335] The server checks the analysis results against a legal database, comparing the analyzed tokens and grammatical structures with the legal provisions in the database to see if there are any matching provisions.
[1336] Emotion analysis
[1337] The server uses an emotion analysis engine to analyze the emotions from the user's input. Specifically, it extracts emotions such as "regret" or "sadness" from the text.
[1338] Specific examples
[1339] Consider the case where the user inputs "I was borrowing my friend's bicycle and accidentally broke it." In this case, the server processes as follows:
[1340] 1. The user types into the terminal, "I was borrowing my friend's bicycle and accidentally broke it."
[1341] 2. The server receives the text and uses a natural language processing library to tokenize and parse it.
[1342] 3. The server compares the analysis results with a legal database to determine the possibility of "illegal activity."
[1343] 4. The server uses a sentiment analysis engine to detect the sentiment of "regret."
[1344] 5. Based on the results of comparison with the legal database and sentiment analysis, the server determines that the user's actions are likely to constitute "illegal conduct."
[1345] 6. The server displays a message on the terminal stating, "Your actions may constitute a tort under civil law."
[1346] Prompt Sentence Examples
[1347] If a user types in "I was borrowing my friend's bicycle and accidentally broke it," determine whether this action constitutes a "tort" under civil law.
[1348] In this way, the system analyzes the user's input to determine whether it may violate the law and makes appropriate decisions.
[1349] The flow of the identification process in the second embodiment will be described with reference to FIG.
[1350] Step 1:
[1351] The user uses a terminal to input text into the system. For example, they might input, "I was borrowing my friend's bicycle and accidentally broke it." The input text is sent to the server. The input data is text that includes the user's situation and the events that occurred.
[1352] Step 2:
[1353] The server uses a natural language processing library (e.g., Python's "spaCy" or "NLTK") to tokenize the received text and perform grammatical analysis. Specifically, it breaks the text down into words and phrases and analyzes each word's part of speech and grammatical structure. The input is the user's text, and the output is a tokenized word list and the grammatical analysis results.
[1354] Step 3:
[1355] The server checks the analysis results against a legal database. It compares the analyzed tokens and grammatical structures with the provisions in the legal database to see if there are any applicable provisions. The input is the grammatical analysis result, and the output is a list of applicable legal provisions. Specifically, it searches for relevant provisions in the legal database and identifies which laws the user's actions fall under.
[1356] Step 4:
[1357] The server uses a sentiment analysis engine (e.g., Google Cloud Natural Language API) to analyze emotions from the user's input. Specifically, it extracts emotions such as "regret" or "sadness" from the text. The input is the user's text, and the output is a list of detected emotions. Specifically, the server sends the text to the sentiment analysis engine and receives the sentiment analysis results.
[1358] Step 5:
[1359] The server determines whether the user's actions may violate the law based on the results of matching with a legal database and the results of sentiment analysis. The input is a list of legal provisions and the results of sentiment analysis, and the output is a judgment result on the likelihood of violating the law. Specifically, it integrates the legal provisions and the results of sentiment analysis to evaluate whether the user's actions constitute "illegal acts."
[1360] Step 6:
[1361] The server notifies the user of the result of the judgment. Specifically, it displays a message on the terminal such as "Your action may constitute a tort under civil law." The input is the judgment result of the possibility of violating the law, and the output is a notification message to the user. Specifically, it generates a notification message and sends it to the user's terminal.
[1362] In this way, the system analyzes the user's input to determine whether it may violate the law and makes appropriate decisions.
[1363] (Application example 2)
[1364] Next, a description will be given of Application Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[1365] In modern society, when users post content on social media or messaging apps that may violate the law, they are required to detect the risk in advance and take appropriate action. However, with current systems, it is difficult for users to determine whether their comments violate the law, and when emotional elements are involved, it is difficult to accurately assess the risk. This increases the risk that users will unintentionally make comments that violate the law.
[1366] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 2 is realized by the following means.
[1367] In this invention, the server includes means for users to input their situation and the events that have occurred into the chat, means for checking whether the input content violates civil or criminal law, and if so, means for providing hints to prove which law it falls under, means for analyzing the user's emotions using an emotion analysis engine and identifying factors that increase the likelihood of violating the law, and means for analyzing in real time the content that the user is about to send via SNS or messaging app and displaying a warning, thereby reducing the risk that the user will unintentionally make statements that violate the law and enabling appropriate action to be taken.
[1368] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[1369] "Means for inputting into chat" refers to an interface that allows users to input their situation and events that have occurred in text format.
[1370] "Means to check whether the entered content violates civil or criminal law" is a function that uses natural language processing technology to analyze whether the entered content violates any law.
[1371] "Means of answering questions and providing hints to prove which law applies" is a function that provides information on the applicable law and useful information to prove the law when the entered content violates the law.
[1372] The "means for guiding the user to the consultation page of a law firm" is a function for guiding the user to the web page of an appropriate law firm in order to seek legal advice.
[1373] An "emotion analysis engine" is a technology that analyzes emotions from user input and identifies elements that increase the likelihood that those emotions will violate the law.
[1374] "Means of analyzing in real time and displaying warnings" refers to a function that instantly analyzes the content a user is about to send on social media or messaging apps, and displays a warning if there is a possibility that it may violate the law.
[1375] As an embodiment of the present invention, a system is provided that allows a user to input their own situation or an incident that has occurred and check whether it may violate the law. A specific embodiment of this system is described below.
[1376] System configuration
[1377] The system includes a user terminal, a server, and an emotion analysis engine. The user terminal is a device such as a smartphone or PC, and provides an interface for users to input text in chat format. The server analyzes the input text and determines whether it may violate the law. The emotion analysis engine analyzes emotions from the user's input and identifies elements that increase the likelihood that the emotions violate the law.
[1378] Hardware and software used
[1379] Hardware: Smartphones, PCs
[1380] Software: Python, spaCy, Transformers, TextBlob
[1381] Data processing and calculation
[1382] 1. Natural Language Processing: The server uses spaCy to parse the user's input text and perform tokenization and part-of-speech tagging.
[1383] 2. Sentiment Analysis: The server uses a sentiment analysis model from the Transformers library to obtain sentiment scores and labels for the input text.
[1384] 3. Polarity analysis: The server uses TextBlob to analyze the polarity (emotion polarity) of the input text.
[1385] 4. Judgment of legality: Based on the analysis results, the server judges whether the input text is likely to violate the law. Specifically, it checks whether it contains specific keywords.
[1386] Specific examples
[1387] If a user enters "I borrowed my friend's bicycle and accidentally broke it," the system will detect the keyword "illegal act" and recognize the emotion of "regret" from the results of emotion analysis. Based on this, the server will determine that the user's behavior is likely to constitute a "tort" under the Civil Code and will display a warning.
[1388] Prompt Sentence Examples
[1389] "I borrowed my friend's bike and accidentally broke it. What should I do?"
[1390] By feeding this prompt into a generative AI model, the system can provide appropriate legal advice.
[1391] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[1392] Step 1:
[1393] A user uses a terminal to input text about their situation or an event that has occurred into a chat-style interface. The input text is sent from the terminal to the server. The input data is text information about the user's situation or an event.
[1394] Step 2:
[1395] The server analyzes the received text using spaCy. Specifically, it tokenizes the text and tags it with parts of speech. The input data is the text entered by the user, and the output data is the tokenized text and its part of speech information.
[1396] Step 3:
[1397] The server uses a sentiment analysis model from the Transformers library to obtain sentiment scores and labels for the input text. The input data is tokenized text, and the output data is sentiment scores and sentiment labels.
[1398] Step 4:
[1399] The server uses TextBlob to analyze the polarity (sentiment polarity) of the input text. The input data is the text entered by the user, and the output data is the polarity score.
[1400] Step 5:
[1401] The server determines whether the input text may violate the law based on the analysis results. Specifically, it checks whether specific keywords are included. The input data is tokenized text, emotion score, emotion label, and polarity score, and the output data is whether the text may violate the law.
[1402] Step 6:
[1403] If the server determines that there is a possibility of violating the law, it displays a warning to the user. The warning message includes the applicable law and information that can be used to prove it. The input data is whether there is a possibility of violating the law, and the output data is the warning message.
[1404] Step 7:
[1405] The server guides the user to the appropriate law firm's web page for legal consultation. The input data is whether or not the user is likely to violate the law and a warning message, and the output data is a link to the law firm's consultation page.
[1406] Example 3
[1407] Next, a description will be given of Example 3 of Form Example 3. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[1408] In conventional systems, users had limited means to obtain information to confirm whether their actions violated the law, making it difficult to find an appropriate law firm. Furthermore, the system lacked the functionality to recommend the most suitable law firm based on the user's feelings, making it difficult for users to receive appropriate legal support.
[1409] The specific processing by the specific processing unit 290 of the data processing device 12 in the third embodiment is realized by the following means.
[1410] In this invention, the server includes means for a user to input their situation and the events that occurred into the chat, means for checking whether the input content violates civil or criminal law, means for responding to which law the content falls under and hints for proving the facts if it does violate civil or criminal law, means for guiding the user to the consultation page of a law firm in that field, means for analyzing the user's input using a generative AI model, means for identifying the applicable law and the proof requirements by referring to a legal knowledge base, and means for analyzing the user's emotions using an emotion engine and recommending the most appropriate law firm. This allows users to quickly check whether their actions violate the law and receive appropriate legal support.
[1411] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[1412] "Means for inputting into chat" refers to an interface that allows users to input their own situation and events that have occurred in text format.
[1413] "Means to check whether the information violates civil or criminal law" is a function to determine whether the information entered by the user violates civil or criminal law.
[1414] The "means of providing hints for proof" is a function that, if the content entered by the user violates the law, indicates which law it falls under and the proof requirements.
[1415] The "means for guiding to the consultation page of a law firm" is a function that provides information on a law firm that can handle the user's problem and guides the user to that consultation page.
[1416] A "generative AI model" is an artificial intelligence model that analyzes user input and extracts relevant information.
[1417] A "legal knowledge base" is a database containing information on civil and criminal law that is used to identify applicable laws and evidentiary requirements.
[1418] The "Emotion Engine" is a function that analyzes the user's emotions and recommends the most suitable law firm based on those emotions.
[1419] The present invention provides a system for enabling users to check whether their actions violate the law and receive appropriate legal assistance. A specific embodiment of this system will be described below.
[1420] Hardware and software used
[1421] Hardware: Servers, terminals (PCs, smartphones)
[1422] Software: Generative AI models, legal knowledge bases, emotion engines, law firm databases
[1423] System Overview
[1424] 1. Accepting user input
[1425] Users use a device (PC or smartphone) to enter information about their situation and events that have occurred in chat format.
[1426] Example: A user types, "I broke my friend's bike."
[1427] 2. Analysis using generative AI models
[1428] The server sends the input data received from the user to the generative AI model for analysis.
[1429] The generative AI model analyzes the input data and extracts relevant information.
[1430] Example: A server analyzes the action "I broke my friend's bike" and extracts information to identify the relevant law.
[1431] 3. Legal Knowledge Base Reference
[1432] Based on the information obtained from the generative AI model, the server refers to a legal knowledge base and searches for relevant laws.
[1433] Example: The server determines that the activity may be a "civil tort" and retrieves the relevant legal provisions.
[1434] 4. Presentation of applicable laws and evidentiary requirements
[1435] The server presents the user with the applicable law and its proof requirements.
[1436] Example: The server notifies the user that "Your actions may constitute a tort under civil law. To prove this, you must prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[1437] 5. Law firm recommendation
[1438] The server consults a law firm database to identify law firms in the relevant legal field.
[1439] Example: A server provides a user with a list of nearby law firms specializing in torts, saying, "Here are some law firms that can help you with your case."
[1440] 6. Recommending the best law firm using an emotion engine
[1441] The server uses an emotion engine to analyze the user's emotions and recommend the most suitable law firm.
[1442] Example: The server analyzes the user's emotion of "regret" and recommends law firms that prioritize honesty in their dealings.
[1443] Examples of specific examples and prompts
[1444] Specific examples
[1445] The user types, "I broke my friend's bike."
[1446] The server analyzes the data using a generative AI model and determines that it may constitute a tort under civil law.
[1447] The server consults a legal knowledge base and presents the requirements for proof.
[1448] The server references a database of law firms and lists nearby law firms that specialize in torts.
[1449] The emotion engine analyzes the user's emotion of "regret" and recommends law firms that prioritize honesty in their responses.
[1450] Prompt Sentence Examples
[1451] "If I damage my friend's bicycle, what law would I be violating? Also, what are the proof requirements and which law firms can handle this?"
[1452] In this way, the user can check whether his or her actions violate the law and obtain information to take appropriate action. The flow of the identification process in the third embodiment will be described with reference to FIG.
[1453] Step 1:
[1454] Accepting user input
[1455] How it works: Users use a device (PC or smartphone) to enter information about their situation and events in chat format.
[1456] Input: A user types "I broke my friend's bike" into a form.
[1457] Output: The entered text data is sent to the server.
[1458] Step 2:
[1459] Analysis using generative AI models
[1460] How it works: The server sends the input data received from the user to the generative AI model for analysis.
[1461] Input: Text data received by the server (e.g., "I broke my friend's bike").
[1462] Data processing: The generative AI model analyzes the input data and extracts relevant information.
[1463] Output: The analysis results in relevant legal information.
[1464] Step 3:
[1465] Legal Knowledge Base Reference
[1466] How it works: The server uses the information obtained from the generative AI model to refer to the legal knowledge base and search for relevant laws.
[1467] Input: Analysis results from the generative AI model (e.g., "illegal activity").
[1468] Data processing: The server searches the legal knowledge base and retrieves the relevant legal provisions.
[1469] Output: The relevant legal provisions and their evidentiary requirements are obtained.
[1470] Step 4:
[1471] Presentation of applicable laws and evidentiary requirements
[1472] Action: The server presents the user with the applicable law and its proof requirements.
[1473] Input: Legal provisions and evidentiary requirements obtained from a legal knowledge base.
[1474] Data processing: The server converts the acquired information into a format that is easy for the user to understand.
[1475] Output: The user's device will see the following message: "Your actions may constitute a tort under civil law. To prove this, you will need to prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[1476] Step 5:
[1477] Law firm recommendation
[1478] What it does: The server consults a law firm database to identify law firms in the appropriate area of law.
[1479] Input: Information from a legal knowledge base (e.g., "law firms that specialize in torts").
[1480] Data Processing: The server searches the law firm database and generates a list of relevant law firms.
[1481] Output: A list will be displayed on the user's terminal stating, "The following law firms can handle your case."
[1482] Step 6:
[1483] Recommending the best law firm using an emotion engine
[1484] How it works: The server uses an emotion engine to analyze the user's emotions and recommend the most suitable law firm.
[1485] Input: User emotion data (e.g., "regret").
[1486] Data Processing: The emotion engine analyzes the user's emotions and identifies the best law firm based on those emotions.
[1487] Output: The user's device will display a list of law firms that prioritize honesty based on the emotion of "regret."
[1488] In this way, users can check whether their actions violate the law and obtain information to take appropriate action.
[1489] (Application example 3)
[1490] Next, a description will be given of Application Example 3 of Form Example 3. In the following description, the data processing device 12 will be referred to as a "server" and the smart glasses 214 will be referred to as a "terminal."
[1491] In modern society, when users engage in actions that may violate the law in their daily lives, it is difficult for them to receive prompt and appropriate legal advice. Furthermore, there is no system that can recommend the most appropriate law firm based on the user's emotions or location information, making it difficult for users to receive appropriate legal support. This poses a risk that users will not be able to take appropriate legal action, and the problem will become more serious.
[1492] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 3 is realized by the following means.
[1493] In this invention, the server includes means for a user to input their situation and the events that have occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law applies if it does violate civil or criminal law, means for guiding the user to the consultation page of a law firm in that field, means for analyzing the user's emotions and recommending the most suitable law firm, and means for listing nearby law firms based on the user's location information. This allows the user to receive prompt and appropriate legal advice and find the most suitable law firm based on emotions and location information.
[1494] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[1495] "Chat" is an interactive interface that allows users to input their situation and events.
[1496] "Civil Law and Criminal Law" refers collectively to the laws that may be violated by the User's actions, including civil and criminal legal norms.
[1497] "Means of verification" is a function to determine whether the entered content violates civil or criminal law.
[1498] "Hints for Proof" is information that indicates the requirements for proof when the user's actions fall under the law.
[1499] A "lawyer's office consultation page" is a law firm's web page that a user accesses to obtain legal advice.
[1500] The "means for analyzing emotions" is a function that analyzes emotions from the user's input and recommends the most suitable law firm based on the results.
[1501] The "means of recommending the most suitable law firm" is a function for selecting and recommending an appropriate law firm based on the results of user sentiment analysis.
[1502] "Location information" is data indicating the user's current location, and is obtained using technology such as GPS.
[1503] The "listing means" is a function for displaying a list of nearby law firms based on the user's location information.
[1504] The system for implementing this invention provides a function that allows users to input their situation or an incident into a chat and check whether the content violates civil or criminal law. It also presents the applicable laws and their proof requirements, and directs users to the appropriate law firm's consultation page. It also has a function that analyzes the user's emotions and recommends the most suitable law firm. A specific embodiment of the system is described below.
[1505] System Configuration
[1506] 1. User Device:
[1507] They use devices such as smartphones and smart glasses, which have a chat interface installed on them that allows users to enter information about their situation and events.
[1508] 2. Server:
[1509] The server receives the data sent from the user and performs the following processing.
[1510] Legal verification module: Checks whether the entered information violates civil or criminal law.
[1511] Proof requirement presentation module: Presents the user with the applicable laws and their proof requirements.
[1512] Law firm guide module: Provides guidance to the consultation pages of law firms in the relevant legal field.
[1513] Sentiment Analysis Module: Analyzes user sentiment and recommends the best law firms.
[1514] Location module: Lists nearby law firms based on the user's location.
[1515] Hardware and software used
[1516] Hardware:
[1517] Smartphones, smart glasses, servers
[1518] software:
[1519] Chat interface: an application for users to enter their status
[1520] Sentiment analysis model: A sentiment analysis model using the transformers library
[1521] Get location: Get user location using geopy library
[1522] Legal Database: Uses the some_legal_database library to retrieve legal information
[1523] Processing flow
[1524] 1. User Input:
[1525] Users input their situation and events through a chat interface.
[1526] Example: "I broke my friend's bike."
[1527] 2. Legal Acknowledgement:
[1528] The server's legal verification module checks whether the entered information violates civil or criminal law.
[1529] Example: "Your actions may constitute a civil tort."
[1530] 3. Proof requirements:
[1531] The server's proof requirement presentation module presents the applicable law and its proof requirements to the user.
[1532] For example: "To prove your case, you must prove that you damaged your friend's bike, that your friend suffered damage as a result, and that you were negligent."
[1533] 4. Law firm information:
[1534] The server's law firm guide module guides the user to the consultation page of a law firm in the relevant legal field.
[1535] For example: "The following law firms can assist with your matter."
[1536] 5. Sentiment analysis:
[1537] The server's sentiment analysis module analyzes the user's sentiment and recommends the most suitable law firm.
[1538] For example: "I regret it so much."
[1539] 6. Acquisition of location information:
[1540] The server's location module lists nearby law firms based on the user's location.
[1541] Example: Based on the latitude and longitude of Tokyo, list law firms within 50km.
[1542] Examples and prompts
[1543] Examples:
[1544] If a user types in "I broke my friend's bike" and expresses their feelings by saying "I'm very sorry," the system will suggest that this may constitute a civil tort, explain the proof requirements, and recommend a nearby law firm with integrity.
[1545] Example prompt sentence:
[1546] User Action: I broke my friend's bike
[1547] User sentiment: I regret it so much
[1548] In this way, users can receive fast and appropriate legal advice and find the best law firm based on their emotions and location.
[1549] The flow of the specific processing in Application Example 3 will be described with reference to FIG.
[1550] Step 1:
[1551] Users input their situation and events through a chat interface.
[1552] Input: The user's situation or event (e.g., "I broke my friend's bike")
[1553] Output: Input text data
[1554] Specific actions: Enter text into the chat interface on the user's device and press the send button.
[1555] Step 2:
[1556] The server's legal verification module checks whether the entered information violates civil or criminal law.
[1557] Input: Text data entered by the user
[1558] Output: Judgment result on whether the action violates the law (e.g., "This may constitute a tort under civil law.")
[1559] Specific operation: The server receives the text data and searches for the relevant law by referring to the legal database.
[1560] Step 3:
[1561] The server's proof requirement presentation module presents the applicable law and its proof requirements to the user.
[1562] Input: Legality judgment result
[1563] Output: Information on the proof requirements (e.g., "To prove your case, you must prove that you damaged your friend's bike, that your friend suffered damage as a result, and that you were negligent.")
[1564] Specific operation: The server obtains the proof requirements from the legal database and sends them to the user terminal.
[1565] Step 4:
[1566] The server's law firm guide module guides the user to the consultation page of a law firm in the relevant legal field.
[1567] Input: Legality judgment result
[1568] Output: List of law firms (e.g. "The following law firms can handle your matter")
[1569] Specific operation: The server refers to the law firm database, lists law firms in the relevant legal field, and sends the list to the user's terminal.
[1570] Step 5:
[1571] The server's sentiment analysis module analyzes the user's sentiment and recommends the most suitable law firm.
[1572] Input: Text data expressing the user's feelings (e.g., "I deeply regret it")
[1573] Output: Sentiment analysis results (e.g., "regret") and a list of recommended law firms
[1574] Specific operation: The server analyzes the text data using a sentiment analysis model (transformers library) to identify the sentiment, then selects the most suitable law firm from the law firm database based on the sentiment and sends it to the user's device.
[1575] Step 6:
[1576] The server's location module lists nearby law firms based on the user's location.
[1577] Input: User's location information (e.g., latitude and longitude of Tokyo)
[1578] Output: List of nearby law firms (e.g., "law firms within 50km")
[1579] Specific operation: The server uses a location information acquisition library (geopy) to acquire the user's location information, lists nearby law firms from a law firm database, and sends the list to the user's terminal.
[1580] The specific processing unit 290 transmits the result of the specific processing to the smart glasses 214. In the smart glasses 214, the control unit 46A causes the speaker 240 to output the result of the specific processing. The microphone 238 acquires audio indicating a user input regarding the result of the specific processing. The control unit 46A transmits audio data indicating the user input acquired by the microphone 238 to the data processing device 12. In the data processing device 12, the specific processing unit 290 acquires the audio data.
[1581] The data generation model 58 is a so-called generative AI (Artificial Intelligence). An example of the data generation model 58 is ChatGPT (Internet Search<URL: https: / / openai.com / blog / chatgpt> ) and other generation AIs. The data generation model 58 is obtained by performing deep learning on a neural network. A prompt including an instruction is input to the data generation model 58, and inference data such as voice data indicating voice, text data indicating text, and image data indicating an image is also input. The data generation model 58 performs inference on the input inference data in accordance with the instruction indicated by the prompt, and outputs the inference result in a data format such as voice data and text data. Here, inference refers to, for example, analysis, classification, prediction, and / or summarization.
[1582] Another example of generative AI is Gemini (internet search engine). <url: https: gemini.google.com ?hl="ja">) are listed.
[1583] In the above embodiment, an example in which the specific processing is performed by the data processing device 12 has been given, but the technology of the present disclosure is not limited to this, and the specific processing may be performed by the smart glasses 214.
[1584] [Third embodiment]
[1585] FIG. 5 shows an example of the configuration of a data processing system 310 according to the third embodiment.
[1586] 5, the data processing system 310 includes the data processing device 12 and a headset terminal 314. An example of the data processing device 12 is a server.
[1587] The data processing device 12 includes a computer 22, a database 24, and a communication I / F 26. The computer 22 is an example of a "computer" according to the technology of the present disclosure. The computer 22 includes a processor 28, a RAM 30, and a storage 32. The processor 28, the RAM 30, and the storage 32 are connected to a bus 34. The database 24 and the communication I / F 26 are also connected to the bus 34. The communication I / F 26 is connected to a network 54. Examples of the network 54 include a WAN (Wide Area Network) and / or a LAN (Local Area Network).
[1588] The headset type terminal 314 includes a computer 36, a microphone 238, a speaker 240, a camera 42, a communication I / F 44, and a display 343. The computer 36 includes a processor 46, a RAM 48, and a storage 50. The processor 46, the RAM 48, and the storage 50 are connected to a bus 52. The microphone 238, the speaker 240, the camera 42, and the display 343 are also connected to the bus 52.
[1589] The microphone 238 receives instructions and the like from the user 20 by receiving voice uttered by the user 20. The microphone 238 captures the voice uttered by the user 20, converts the captured voice into audio data, and outputs it to the processor 46. The speaker 240 outputs audio in accordance with instructions from the processor 46.
[1590] Camera 42 is a small digital camera equipped with an optical system including a lens, aperture, and shutter, and an imaging element such as a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor, and captures images of the surroundings of user 20 (for example, an imaging range defined by an angle of view equivalent to the field of vision of a typical healthy person).
[1591] The communication I / F 44 is connected to a network 54. The communication I / Fs 44 and 26 are responsible for the exchange of various information between the processor 46 and the processor 28 via the network 54. The exchange of various information between the processor 46 and the processor 28 using the communication I / Fs 44 and 26 is carried out in a secure state.
[1592] Fig. 6 shows an example of the main functions of the data processing device 12 and the headset type terminal 314. As shown in Fig. 6, in the data processing device 12, a specific process is performed by the processor 28. A specific process program 56 is stored in the storage 32.
[1593] The specific processing program 56 is an example of a "program" according to the technology of the present disclosure. The processor 28 reads the specific processing program 56 from the storage 32 and executes the read specific processing program 56 on the RAM 30. The specific processing is realized by the processor 28 operating as a specific processing unit 290 in accordance with the specific processing program 56 executed on the RAM 30.
[1594] The storage 32 stores a data generation model 58 and an emotion identification model 59. The data generation model 58 and the emotion identification model 59 are used by the identification processing unit 290.
[1595] In the headset type terminal 314, a reception output process is performed by the processor 46. A reception output program 60 is stored in the storage 50. The processor 46 reads the reception output program 60 from the storage 50 and executes the read reception output program 60 on the RAM 48. The reception output process is realized by the processor 46 operating as the control unit 46A in accordance with the reception output program 60 executed on the RAM 48.
[1596] Next, the specific processing by the specific processing unit 290 of the data processing device 12 will be described.
[1597] "Example 1"
[1598] The system of the present invention provides a means for users to input their own situations and events into the chat. Specifically, a chat box is provided as a user interface, allowing users to freely input text. For example, if a user inputs "Yesterday, I borrowed my friend's bicycle and accidentally broke it," the system will receive this information.
[1599] "Example 2"
[1600] Next, we provide a means to check whether the input content violates civil or criminal law. Specifically, we use natural language processing technology to analyze the user's input and determine whether it may violate the law. For example, in the above example, the information "I borrowed my friend's bicycle and accidentally broke it" is determined to be a "tort" under civil law.
[1601] "Example 3"
[1602] Furthermore, if the behavior violates civil or criminal law, the system provides a means to answer which law applies and hints on how to prove it. Specifically, the system references a legal knowledge base and presents the user with the applicable law and the proof requirements. For example, in the above example, the system provides hints such as, "Your behavior may be considered a tort under civil law. To prove your behavior, you need to prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[1603] "Example 4"
[1604] Finally, the system provides a means to guide the user to the consultation page of a law firm in that field. Specifically, the system refers to a database of registered law firms and presents the user with information on law firms in the relevant legal field. For example, in the above example, the system provides a list of nearby law firms that specialize in torts, stating, "The following law firms can handle your case."
[1605] The processing flow of each embodiment will be described below.
[1606] "Example 1"
[1607] Step 1: A chat box is provided as a user interface. This chat box is designed to allow the user to freely input text.
[1608] Step 2: The user types, "Yesterday, I borrowed my friend's bike and accidentally broke it," and the system takes this information and moves on to the next step.
[1609] "Example 2"
[1610] Step 1: The system uses natural language processing techniques to analyze the user's input.
[1611] Step 2: Based on the analysis results, it is determined whether the input content may violate the law. In this example, the information "I borrowed my friend's bicycle and accidentally broke it" is determined to be a "tort" under the Civil Code.
[1612] "Example 3"
[1613] Step 1: The system consults the legal knowledge base.
[1614] Step 2: Present the user with the applicable laws and the proof requirements. In this example, the system provides hints such as, "Your actions may constitute a tort under civil law. To prove your actions, you must prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[1615] "Example 4"
[1616] Step 1: The system consults a database of registered law firms.
[1617] Step 2: Present the user with information about law firms in the relevant legal field. In this example, the system provides a list of nearby law firms that specialize in torts, stating, "The following law firms can handle your case."
[1618] Example 1
[1619] Next, a description will be given of Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[1620] In modern society, there is a lack of means for users to quickly and appropriately consult about their situations or events that have occurred. Furthermore, there are limited systems that can check whether the information entered by users violates the law and provide appropriate advice. Furthermore, there is a need to eliminate the information divide and provide an environment where everyone can have equal access to information.
[1621] The identification process by the identification processing unit 290 of the data processing device 12 in Example 1 is realized by the following means. In this invention, the server includes a means for a user to input their situation and the event that occurred into the chat, a means for transmitting the input text data to the server, a means for the server to analyze the received text data, a means for the server to input a prompt sentence to the generative AI model, a means for the generative AI model to generate a response, a means for displaying the generated response to the user, a means for checking whether the input content violates civil or criminal law, and if so, a means for providing hints to prove which law applies, and a means for guiding the user to a consultation page for experts in that field. This allows users to quickly and appropriately consult about their situation and the event that occurred, confirm whether the content violates the law, and receive appropriate advice. It also eliminates information gaps and provides an environment in which everyone can equally access information.
[1622] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[1623] A "chat box" is an interface that allows users to freely input text.
[1624] "Text data" is character information entered by the user into the chat box.
[1625] The "server" is a computer system whose role is to receive and analyze text data sent by users and input prompt sentences into the generative AI model.
[1626] "Parsing" is the process by which the server understands the content of the text data it receives and generates an appropriate prompt sentence.
[1627] A "generative AI model" is an artificial intelligence model that generates an appropriate response based on an input prompt.
[1628] A "prompt sentence" is an instruction sentence based on the user's text data that is input into a generative AI model.
[1629] A "response" is a reply or action that a generative AI model generates based on a prompt.
[1630] "Civil Code and Criminal Code" refers to laws that may be violated by the content entered by the user.
[1631] An "expert" is an individual or organization with advanced knowledge and experience in a particular field.
[1632] The "consultation page" is a web page or contact means for users to consult with experts.
[1633] This invention is a system in which a user inputs information about their situation or an event that has occurred into a chat box, analyzes the content, and generates an appropriate response. A specific embodiment of this system will be described below.
[1634] First, the user freely enters text about their situation or the incident that occurred in the chat box provided by the system. For example, they might enter, "Yesterday, I borrowed my friend's bicycle and accidentally broke it."
[1635] Next, the terminal sends the text data entered by the user to the server in an appropriate format (for example, JSON format).
[1636] The server receives and analyzes the text data sent from the device. Natural language processing technology is used to understand the content of the text. Specifically, the server analyzes the text data and creates prompt sentences to input into the generative AI model.
[1637] For example, if the user types "Yesterday I borrowed my friend's bike and accidentally broke it," the server will generate the following prompt:
[1638] The user types, "Yesterday, I borrowed my friend's bike and accidentally broke it." Generate an appropriate response to this situation.
[1639] Next, the server inputs the generated prompt into a generative AI model. Examples of generative AI models that can be used include OpenAI's GPT-4. The generative AI model generates an appropriate response based on the input prompt. For example, it generates a response such as, "It would be a good idea to apologize to your friend and offer to cover the cost of repairs."
[1640] The generated response is sent from the server to the terminal. The terminal displays the response received from the server to the user. The user can check the generated response in the chat box.
[1641] Furthermore, the system has a function to check whether the content entered by the user violates civil or criminal law. If the content entered violates the law, the server will identify which law it falls under and provide hints for proving the case. It also includes a function to direct users to a consultation page with experts in that field.
[1642] For example, if the user types "I made a mistake at work and my boss scolded me," the server will generate the following prompt:
[1643] The user types, "I made a mistake at work and my boss got angry with me." Generate an appropriate response for this situation.
[1644] Based on this prompt, the generative AI model generates a response such as, "It would be a good idea to admit your mistake and tell your boss that you will think of ways to avoid making the same mistake again."
[1645] In this way, the system provides appropriate responses to situations and events entered by the user. This system allows users to consult quickly and appropriately, confirm whether their case violates the law, and receive appropriate advice. It also eliminates information gaps and provides an environment where everyone can have equal access to information.
[1646] The flow of the identification process in the first embodiment will be described with reference to FIG.
[1647] Step 1:
[1648] The user enters text into the chat box.
[1649] Specific operation: The user freely enters text about their situation or the event that occurred in the chat box provided by the system. For example, they can enter, "Yesterday, I borrowed my friend's bicycle and accidentally broke it."
[1650] Input: Text data entered by the user.
[1651] Output: Text data entered in the chat box.
[1652] Step 2:
[1653] The terminal transmits the input text data to the server.
[1654] Specific operation: The terminal sends the text data entered by the user to the server in an appropriate format (for example, JSON format).
[1655] Input: Text data entered into the chat box.
[1656] Output: The text data sent to the server.
[1657] Step 3:
[1658] The server analyzes the received text data.
[1659] Specific operation: The server receives the text data sent from the device and analyzes it using natural language processing technology. As a result of the analysis, it creates a prompt sentence to input into the generative AI model.
[1660] Input: The text data sent to the server.
[1661] Output: The prompt sentence to be input to the generative AI model.
[1662] Step 4:
[1663] The server inputs a prompt sentence into the generative AI model.
[1664] Specific operation: The server inputs a prompt sentence created based on the analyzed text data into the generative AI model. For example, the prompt sentence might read, "The user input, 'Yesterday, I borrowed my friend's bicycle and accidentally broke it.' Please generate an appropriate response to this situation."
[1665] Input: The prompt to be input to the generative AI model.
[1666] Output: The prompt sentence fed into the generative AI model.
[1667] Step 5:
[1668] A generative AI model generates a response.
[1669] Specific behavior: A generative AI model (e.g., OpenAI's GPT-4) generates an appropriate response based on a prompt input from the server, such as "It would be a good idea to apologize to your friend and offer to cover the cost of repairs."
[1670] Input: The prompt sentence fed into the generative AI model.
[1671] Output: The generated response.
[1672] Step 6:
[1673] The server sends the generated response to the terminal.
[1674] Specific operation: The server receives the response generated by the generative AI model and sends it to the terminal in an appropriate format (e.g., JSON format).
[1675] Input: The generated response.
[1676] Output: The response sent to the terminal.
[1677] Step 7:
[1678] The terminal displays the response to the user.
[1679] Specific operation: The terminal displays the response received from the server to the user, and the user can check the generated response in the chat box.
[1680] Input: The response sent to the terminal.
[1681] Output: The response displayed to the user.
[1682] (Application example 1)
[1683] Next, a description will be given of Application Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[1684] In modern society, there is a lack of appropriate means for users to seek advice about their own situations and incidents. There is also a need for a system that provides advice to quickly and accurately resolve security-related issues and questions. Furthermore, it is important to provide information that allows users to take appropriate measures regarding incidents that may violate the law.
[1685] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 1 is realized by the following means.
[1686] In this invention, the server includes means for a user to input their situation and the event that occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law applies if it does violate civil or criminal law, means for directing the user to a consultation page of a law firm in that field, means for analyzing security issues and questions and using a generative AI model to provide appropriate countermeasures and advice, means for sending prompt messages to the generative AI model and generating a response, and means for displaying the generated advice to the user. This allows users to appropriately consult about their situation and problems and receive prompt and accurate advice on security issues and questions.
[1687] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[1688] "Situation" refers to the environment or state that the user is currently facing.
[1689] An "event" refers to an occurrence or incident that a user experiences.
[1690] "Chat" is an interface that allows users to interact with the system by entering text.
[1691] "Input content" refers to text information that a user inputs into a chat.
[1692] "Civil Law and Criminal Law" are laws that determine whether a user's actions or events are legally problematic.
[1693] "Means of verification" is a function to check whether the entered content violates civil or criminal law.
[1694] "Tips for Proving" provides advice and information to help users prove legally binding events.
[1695] A "lawyer's consultation page" is a law firm's web page that users can access to obtain legal advice.
[1696] "Security" refers to issues and questions regarding user safety and information protection.
[1697] A "generative AI model" is an artificial intelligence model that analyzes user input and generates appropriate countermeasures and advice.
[1698] A "prompt" is a text instruction that is input to a generative AI model.
[1699] The "means for generating a response" is the function by which the generative AI model creates an answer based on the prompt sentence.
[1700] The "display means" is a function for showing the generated advice or answer to the user.
[1701] A system for implementing this invention includes means for a user to input their situation or an event that has occurred into a chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law it falls under if it violates civil or criminal law, means for directing the user to the consultation page of a law firm in that field, means for using a generative AI model to analyze security issues and questions and provide appropriate countermeasures and advice, means for sending a prompt to the generative AI model and generating a response, and means for displaying the generated advice to the user.
[1702] Hardware and software used
[1703] Hardware: Smartphones, servers
[1704] Software: Python, OpenAI API
[1705] Data processing and calculation
[1706] 1. User input:
[1707] Users can enter their situation or the incident into the chat box on their smartphone, for example, "I recently saw a suspicious person near my house. What should I do?"
[1708] 2. Data transmission:
[1709] The smartphone sends the entered text to a server, which then checks whether it violates civil or criminal law.
[1710] 3. Use of generative AI models:
[1711] The server sends the input text to a generative AI model (e.g., OpenAI's GPT-3) using the following prompt format:
[1712] A user entered the following security problem: I recently saw a suspicious person near my house. What should I do?
[1713] Please provide appropriate measures and advice.
[1714] 4. Generate response:
[1715] The generative AI model analyzes the prompt and generates appropriate measures and advice, such as, "First, alert your neighbors and contact the police to report the situation. It may also be effective to consider installing security cameras."
[1716] 5. Display Advice:
[1717] The server sends the generated advice to the smartphone and displays it to the user, who can then take appropriate measures.
[1718] Specific examples
[1719] If a user types, "I recently saw a suspicious person near my house. What should I do?", the generative AI model will provide advice such as, "First, warn your neighbors and contact the police to report the situation. You may also want to consider installing a security camera." This advice is displayed on the smartphone, allowing the user to act accordingly.
[1720] In this way, users can appropriately discuss their situations and problems, and receive prompt and accurate advice regarding security-related problems and questions.
[1721] The flow of the specific processing in the application example 1 will be described with reference to FIG.
[1722] Step 1:
[1723] The user enters their situation or the incident into the chat box on their smartphone. For example, they might type, "I recently saw a suspicious person near my house. What should I do?" The entered text is sent to the smartphone application.
[1724] Step 2:
[1725] The smartphone sends the entered text to a server. The server receives this text and first checks whether it violates civil or criminal law. Specifically, it uses a text analysis algorithm to check whether the entered content is legally problematic. The input is the user's text, and the output is the result of a judgment as to whether it violates any legal rules.
[1726] Step 3:
[1727] The server sends the input text to a generative AI model (e.g., OpenAI's GPT-3) using the following prompt format:
[1728] A user entered the following security problem: I recently saw a suspicious person near my house. What should I do?
[1729] Please provide appropriate measures and advice.
[1730] The input is a prompt sentence, and the output is a response from the generative AI model.
[1731] Step 4:
[1732] The generative AI model analyzes the prompt and generates appropriate measures and advice. For example, it generates advice such as, "First, warn your neighbors and contact the police to report the situation. It may also be a good idea to consider installing security cameras." The input is the prompt, and the output is the generated advice.
[1733] Step 5:
[1734] The server sends the generated advice to the smartphone and displays it to the user, who can then take appropriate measures. The input is the generated advice, and the output is the advice displayed on the smartphone.
[1735] In this way, users can appropriately discuss their situations and problems, and receive prompt and accurate advice regarding security-related problems and questions.
[1736] Example 2
[1737] Next, a description will be given of Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[1738] In modern society, it is difficult for ordinary people to determine whether their actions or situations violate the law. Furthermore, when there is a possibility of violating the law, there are limited ways to understand which law applies and to consult with appropriate experts. This leads to a lack of legal knowledge and an information gap.
[1739] The specific processing by the specific processing unit 290 of the data processing device 12 in the second embodiment is realized by the following means.
[1740] In this invention, the server includes a means for users to input their own situation and the events that have occurred, a means for using natural language processing technology to analyze the input content, and a means for determining the possibility of violation of civil or criminal law using a generative AI model based on the analysis results, thereby enabling users to quickly determine whether their actions or situations violate the law and obtain information to consult with an appropriate expert.
[1741] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[1742] An "input means" is an interface or device through which a user provides text or information to a system.
[1743] "Natural language processing technology" is a technology that enables computers to understand and analyze human language, and includes tokenization, part-of-speech tagging, dependency analysis, etc.
[1744] A "generative AI model" is an artificial intelligence model trained to perform specific tasks based on input data, and is used here to determine potential legal violations.
[1745] "Civil and criminal law" refers to laws that regulate the conduct and relationships of individuals and organizations, and includes civil law and criminal law.
[1746] The "means of determination" is the process of using a generative AI model based on the analysis results to assess the likelihood that the input content violates the law.
[1747] The "means for providing a hint" is a function that indicates to the user which law the input content falls under and provides the user with information and advice to prove the point.
[1748] The "means for guiding to a page for expert consultation" is a function that provides a web page or contact information for users to seek expert legal advice.
[1749] This invention is a system that allows users to input their own situation or the events that have occurred and determines whether the content violates civil or criminal law. The system analyzes the content entered by the user and, if there is a possibility of a violation of the law, indicates which law it falls under and provides hints for proving the case. It also directs users to a page where they can seek advice from an expert, if necessary.
[1750] Hardware and software used
[1751] Hardware: Server
[1752] Software: Natural language processing libraries (e.g., spaCy, NLTK), generative AI models (e.g., GPT-3)
[1753] Program processing flow
[1754] 1. User input: The user inputs text into the system through a terminal, for example, "I was borrowing my friend's bicycle and accidentally broke it."
[1755] 2. Sending data: The device sends the user's input to the server, where it is packaged in JSON format.
[1756] 3. Data analysis: The server receives the input and analyzes it using natural language processing libraries, such as text tokenization, part-of-speech tagging, and dependency analysis.
[1757] 4. Legal collation: Based on the analysis results, the server uses a generative AI model to determine whether the input content may violate civil or criminal law. For example, if someone says, "I borrowed my friend's bicycle and accidentally broke it," the server determines that this may constitute a "tort" under civil law.
[1758] 5. Returning the results: The server returns the results to the device, packaged in JSON format.
[1759] 6. Notification to the user: The device receives the result from the server and displays it to the user. For example, it displays a message saying, "This action may be a tort under civil law."
[1760] Specific examples
[1761] Example: "I borrowed my friend's bike and accidentally broke it."
[1762] Analysis results: The text was analyzed using natural language processing technology, and the generative AI model determined that it may constitute "illegal activity."
[1763] Sample output: "This action may constitute a civil tort."
[1764] Prompt Sentence Examples
[1765] Prompt: "Judge whether the following text violates civil or criminal law. Text: 'I was borrowing my friend's bicycle and accidentally broke it.'"
[1766] This system quickly determines whether the content entered by the user violates the law and provides information to help the user consult with an appropriate expert.
[1767] The flow of the identification process in the second embodiment will be described with reference to FIG.
[1768] Step 1:
[1769] A user enters text into an input field on the device. For example, "I was borrowing my friend's bicycle and accidentally broke it." The input is saved in text format on the device.
[1770] Step 2:
[1771] The device converts the input data into JSON format and sends it to the server as an HTTP POST request. The input data is stored in the "text" field and sent to the server.
[1772] Step 3:
[1773] The server receives an HTTP request and parses the JSON-formatted data. Specifically, it uses a natural language processing library (e.g., spaCy) to tokenize the text and perform part-of-speech tagging and dependency analysis. The input data is converted into tokenized text and tagging information as the analysis results.
[1774] Step 4:
[1775] The server uses a generative AI model (e.g., GPT-3) based on the analysis results to determine whether the input content is likely to violate civil or criminal law. The generative AI model receives the analysis results as input and evaluates the likelihood of violating the law. The output is a judgment such as "there is a possibility that this constitutes an illegal act."
[1776] Step 5:
[1777] The server converts the result of the judgment into JSON format and returns it to the terminal as an HTTP response. The result of the judgment is packaged as a message such as "This action may constitute a tort under civil law."
[1778] Step 6:
[1779] The device receives the response from the server and displays the result to the user. Specifically, the web browser or mobile app screen displays the message "This action may be illegal under the Civil Code."
[1780] (Application example 2)
[1781] Next, a description will be given of Application Example 2 of Form Example 2. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[1782] In modern society, users may unintentionally include content that violates the law in their everyday text communications (e.g., social media posts and business emails). In such cases, it is difficult for users to recognize legal risks in advance, resulting in a higher risk of becoming embroiled in legal trouble. Furthermore, the means for obtaining expert advice are limited, making it difficult to respond quickly and appropriately. To solve these issues, there is a need for a system that can analyze the text content entered by users in real time and evaluate legal risks.
[1783] The identification processing by the identification processing unit 290 of the data processing device 12 in Application Example 2 is realized by the following means. In this invention, the server includes means for a user to input their situation and the event that occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law the content falls under if it violates civil or criminal law, means for guiding the user to a consultation page for experts in that field, means for sending the text data input by the user to a natural language processing engine and analyzing the text, means for evaluating whether the text may violate the law based on the analysis results, and means for providing feedback of the evaluation results to the user in real time. This allows the user to recognize legal risks in advance and take prompt and appropriate action.
[1784] A "user" is an individual or corporation that uses the system to input their own situation and events that have occurred.
[1785] "Means for inputting into chat" refers to an interface for users to input text data, including keyboard input on a smartphone or computer.
[1786] "Means to check whether the entered content violates civil or criminal law" refers to algorithms or programs that analyze the text data entered by the user and determine whether it violates any law.
[1787] "Means of providing hints to prove which law it falls under" is a function that, when the entered text violates the law, presents the specific name of the law and related legal provisions, explaining it in a way that is easy for the user to understand.
[1788] "Means of directing users to consultation pages of experts in that field" is a function that provides consultation pages and contact information of relevant experts (e.g., lawyers) when a user becomes aware of a legal risk.
[1789] A "natural language processing engine" is an artificial intelligence technology that analyzes text data entered by a user and understands its meaning and context, and includes, for example, Google Cloud Natural Language API and OpenAI GPT-4.
[1790] A "means for analyzing text" is a program that uses a natural language processing engine to analyze the content of text data entered by a user and understand its meaning and context.
[1791] "Means for assessing whether text may violate the law" refers to algorithms or programs that use analyzed text data to determine whether it may violate the law.
[1792] "Means for providing real-time feedback of evaluation results to users" refers to a function that immediately notifies users of the results of text analysis and displays a warning message if there is a legal risk.
[1793] A system for carrying out the present invention analyzes text data entered by a user in real time and evaluates legal risks. A specific embodiment of the system will be described below.
[1794] System configuration
[1795] 1. Hardware:
[1796] User devices: smartphones (iOS or Android), computers
[1797] Server: Cloud server (e.g., Amazon Web Services, Google Cloud Platform)
[1798] 2. Software:
[1799] Natural language processing engine: Google Cloud Natural Language API, OpenAI GPT-4
[1800] Mobile app development frameworks: React Native, Flutter
[1801] System Operation
[1802] 1. User input:
[1803] Users use their smartphones or computers to enter information about their situations and events in chat format, such as messages they plan to post on social networking sites or business emails.
[1804] 2. Data transmission:
[1805] The user terminal transmits the input text data to the server, and the server transmits the received text data to the natural language processing engine.
[1806] 3. Text Analysis:
[1807] The server uses a natural language processing engine (Google Cloud Natural Language API or OpenAI GPT-4) to analyze the text data, and the analysis results include the meaning and context of the text, as well as any associated legal risks.
[1808] 4. Legal Risk Assessment:
[1809] Based on the analysis results, the server evaluates whether the text may violate civil or criminal law, specifically by determining whether it contains specific keywords or phrases based on the context.
[1810] 5. User Feedback:
[1811] The server provides the evaluation results to the user in real time, for example by displaying a warning message such as "This content may be considered illegal."
[1812] Specific examples
[1813] If a user enters a message to post on a social networking site, such as "I was borrowing my friend's bicycle and accidentally broke it," the system operates as follows:
[1814] 1. The user enters a message.
[1815] 2. The user device sends a message to the server.
[1816] 3. The server sends the message to the natural language processing engine.
[1817] 4. A natural language processing engine analyzes the message and determines that it may constitute "illegal activity."
[1818] 5. The server displays a warning to the user saying, "This content may be illegal."
[1819] Prompt Sentence Examples
[1820] Below is an example of a prompt sentence to input to the generative AI model.
[1821] Please determine whether the following text is legal.
[1822] Text: "I borrowed my friend's bike and accidentally broke it."
[1823] In this way, users can be aware of legal risks in advance and take prompt and appropriate action.
[1824] The flow of the specific processing in the application example 2 will be described with reference to FIG.
[1825] Step 1:
[1826] Users input their situation and events in chat format. The input text data is acquired through the input interface of the user's device (smartphone or computer keyboard). The input data is temporarily saved in the user's device.
[1827] Step 2:
[1828] The user terminal sends the input text data to the server, which receives the data and prepares it for analysis. Specifically, the format of the text data is standardized and converted into a format suitable for the natural language processing engine.
[1829] Step 3:
[1830] The server sends the received text data to a natural language processing engine (e.g., Google Cloud Natural Language API or OpenAI GPT-4). The natural language processing engine analyzes the text data and understands its meaning and context. The analysis results include sentiment analysis of the text, keyword extraction, and context understanding.
[1831] Step 4:
[1832] The server receives the analysis results from the natural language processing engine and uses them to evaluate whether the text may violate civil or criminal law. Specifically, the server applies an algorithm that determines legal risk based on the context, such as whether the text contains specific keywords or phrases.
[1833] Step 5:
[1834] The server provides real-time feedback to the user based on the evaluation results. For example, if the text is likely to constitute an illegal act, it generates a warning message stating, "This content may constitute an illegal act." The generated message is then sent to the user's device.
[1835] Step 6:
[1836] The user terminal displays the feedback message received from the server. The user checks the displayed warning message and corrects the text content as necessary, or accesses an expert consultation page. When the user accesses the expert consultation page, the server provides information on related experts.
[1837] Step 7:
[1838] When a user accesses the expert consultation page, the server recommends an appropriate expert based on the user's input and analysis results. The user is then provided with the contact information for the recommended expert and the URL of the consultation page. The user can then consult with the expert based on the information provided.
[1839] In this way, users can be aware of legal risks in advance and take prompt and appropriate action.
[1840] Example 3
[1841] Next, a third embodiment of the third embodiment will be described. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[1842] In today's society, it is difficult for ordinary people to quickly and accurately determine whether their actions violate the law. It is also difficult for them to understand what proof is required if they violate the law. Furthermore, there are limited ways to obtain information to consult with appropriate experts. To solve these problems, a system that is easily accessible to users is needed.
[1843] The specific processing by the specific processing unit 290 of the data processing device 12 in the third embodiment is realized by the following means.
[1844] In this invention, the server includes means for a user to input their situation and the events that occurred, means for checking whether the input content violates the law, means for responding to which law it falls under and hints for proving it if it does violate the law, means for generating the applicable law and its proof requirements using a generative AI model, and means for guiding users to a consultation page for experts in the relevant legal field. This enables users to quickly determine whether their actions violate the law, understand the necessary proof requirements, and obtain information for consulting with an appropriate expert.
[1845] A "user" is an individual or group that uses the system to input their own situation and events that have occurred.
[1846] A "situation" refers to a specific event or occurrence that a user is facing.
[1847] An "event" refers to a specific occurrence or action experienced by a user.
[1848] "Input means" refers to the interface or device that allows the user to communicate their situation or events to the system.
[1849] "Means of verification" refers to the system's ability to analyze information entered by the user and determine whether that information violates the law.
[1850] "Law" refers to legal provisions, including civil law, criminal law, and other legal norms.
[1851] "Tips for Proving" refers to advice that shows the information and requirements necessary for a user to prove that their actions violate the law.
[1852] "Generative AI model" refers to an algorithm or system that uses artificial intelligence technology to analyze user input and generate applicable laws and evidentiary requirements.
[1853] "Expert" refers to a lawyer or legal consultant who has specialized knowledge and experience in a legal field.
[1854] "Consultation Page" refers to an online resource that provides web pages and contact information for users to consult with experts.
[1855] This invention is a system that allows users to input their own situation and the events that have occurred, check whether they violate the law, present the necessary proof requirements, and guide them to a page where they can seek advice from an appropriate expert. This system is implemented using the following hardware and software.
[1856] Hardware and software used
[1857] Server: Manages the legal knowledge base using a database management system (e.g., MySQL or PostgreSQL) and provides the computational resources to run generative AI models (e.g., OpenAI's GPT-4).
[1858] Terminal: A device (e.g., a PC, smartphone, or tablet) through which a user enters information. The terminal accesses the system via a web browser.
[1859] Generative AI model: An artificial intelligence algorithm that analyzes user input and generates applicable laws and their evidentiary requirements.
[1860] Specific operation of the system
[1861] 1. User enters information:
[1862] The user opens a web browser on the device and accesses the system's web page. They enter their situation and the incident into the input form and click the submit button. For example, they might enter, "I broke my friend's bicycle."
[1863] 2. The device sends the information to the server:
[1864] The device sends the information entered by the user to the server using the HTTPS protocol. The data is encrypted and reaches the server safely.
[1865] 3. The server analyzes the information and generates and sends a prompt to the generative AI model:
[1866] The server analyzes the received information and generates a prompt to send to the generative AI model, such as, "If I damage my friend's bicycle, what law does that apply to me and what proof is required?"
[1867] 4. The generative AI model generates the applicable law and evidentiary requirements:
[1868] The generative AI model generates the relevant law and proof requirements based on the prompt text. For example, it generates an answer such as, "Your actions may constitute a tort under civil law. Proof requires that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[1869] 5. The server presents the generated information to the user:
[1870] The server presents the information received from the generative AI model to the user, who can then review the applicable laws and proof requirements on their device screen.
[1871] 6. The server will direct you to the appropriate expert consultation page:
[1872] The server refers to a database of registered experts and presents the user with a list of nearby experts who are knowledgeable about torts, saying, "The following experts can handle your problem." The user can check the list of experts on the screen of their device and access the consultation page.
[1873] Specific examples
[1874] If the user types "I broke my friend's bike," the server will send the following prompt to the generative AI model:
[1875] "If I damage my friend's bike, what law does that apply to and what are the proof requirements?"
[1876] The generative AI model generates answers like this:
[1877] "Your actions may constitute a tort under civil law. To prove this, you need to prove that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent."
[1878] In this way, users can quickly determine whether their actions violate the law, understand the necessary proof requirements, and obtain information to consult with an appropriate expert. The flow of the identification process in the third embodiment will be described with reference to FIG.
[1879] Step 1:
[1880] The user enters information
[1881] The user opens a web browser on their device and accesses the system's web page. They enter their situation and the events that occurred in the input form and click the submit button. For example, they might enter "I broke my friend's bicycle." The input data is saved in text format on the device.
[1882] Step 2:
[1883] The device sends the information to the server
[1884] The terminal sends the information entered by the user to the server using the HTTPS protocol. The sent data is encrypted, so it arrives safely at the server. The input data is sent to the server in text format.
[1885] Step 3:
[1886] The server analyzes the information and generates and sends a prompt to the generative AI model.
[1887] The server analyzes the received information and generates a prompt to send to the generative AI model. For example, it generates a prompt such as, "If I damage my friend's bicycle, what law does that apply and what proof is required?" The input data is analyzed in text format to generate a prompt.
[1888] Step 4:
[1889] A generative AI model generates applicable laws and evidentiary requirements
[1890] The generative AI model generates the relevant law and proof requirements based on the prompt. For example, it generates an answer such as, "Your actions may constitute a tort under civil law. Proof requires that you damaged your friend's bicycle, that your friend suffered damage as a result, and that you were negligent." The input data is the prompt, and the output data is the generated legal information and proof requirements.
[1891] Step 5:
[1892] The server presents the generated information to the user
[1893] The server presents the information received from the generative AI model to the user, who can check the applicable laws and evidentiary requirements on their device screen. The input data is the generated legal information and evidentiary requirements, and the output data is the text information presented to the user.
[1894] Step 6:
[1895] The server will direct you to the appropriate specialist consultation page.
[1896] The server refers to a database of registered experts and presents the user with a list of nearby experts who are knowledgeable in torts, saying, "The following experts can handle your problem." The user can check the list of experts on the screen of their device and access the consultation page. The input data is the database information of experts, and the output data is the list of experts presented to the user.
[1897] (Application example 3)
[1898] Next, a description will be given of Application Example 3 of Form Example 3. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[1899] In modern society, users are expected to quickly determine whether their actions violate the law and take appropriate action. However, it is difficult for ordinary users who lack legal knowledge to do this on their own. It is also not easy to find an appropriate law firm. This can result in users being unable to respond quickly and appropriately when faced with a legal problem, which can result in them suffering disadvantages.
[1900] The specific processing by the specific processing unit 290 of the data processing device 12 in the application example 3 is realized by the following means.
[1901] In this invention, the server includes a means for a user to input their situation and the events that have occurred into the chat, a means for checking whether the input content violates civil or criminal law, a means for responding to the user if it violates civil or criminal law and providing hints on how to prove the violation, a means for directing the user to a consultation page of a law firm in that field, a means for determining in real time whether the user's actions violate the law, a means for presenting the applicable law and the proof requirements, a means for providing information on law firms in that field as needed, and an application to be installed on a smartphone. This allows the user to quickly determine whether their actions violate the law and take appropriate action.
[1902] "User" refers to any individual or legal entity that uses the System.
[1903] A "situation" refers to a specific event or environment that a user is facing.
[1904] An "event" refers to a specific occurrence or action experienced by a user.
[1905] "Chat" refers to a text-based means of communication.
[1906] "Input" refers to the act of a user providing information to a system.
[1907] "Civil Code" refers to the law that stipulates the rights and obligations between individuals.
[1908] "Criminal law" refers to laws that define crimes and their punishments.
[1909] "Validation" refers to the act of verifying whether entered information meets certain criteria.
[1910] A "hint" is a clue or advice that helps a user solve a problem.
[1911] "Law firm" refers to an institution that provides professional legal services.
[1912] The "consultation page" refers to a web page where a user can make a consultation with a law firm.
[1913] "Real-time" refers to near-simultaneous processing and response.
[1914] "Requirements of proof" refers to the conditions or evidence necessary to prove a particular violation of law.
[1915] "Information" refers to user-provided and system-generated data.
[1916] "Providing" refers to the act of giving information or services to a user.
[1917] A "smartphone" refers to a mobile phone that can connect to the Internet and use applications.
[1918] "Application" refers to software that provides specific functions or services.
[1919] The system for implementing this invention provides a function that allows users to input their situation or an incident into a chat and check whether the content violates civil or criminal law. It also has a function that presents the applicable law and its proof requirements, and if necessary, directs users to the consultation page of a law firm in that field.
[1920] System configuration
[1921] The system consists of the following major components:
[1922] 1. User device: A mobile information terminal such as a smartphone.
[1923] 2. Server: Holds the legal knowledge base and the database of law firms and processes input from users.
[1924] 3. Application: Software installed on your smartphone.
[1925] Hardware and Software
[1926] Hardware: Smartphone (e.g. iPhone, Android device)
[1927] Software: Python, JSON, requests library
[1928] Data processing and calculation
[1929] 1. User terminal: The user inputs their situation and events in chat format.
[1930] 2. Server: Receives user input, consults a legal knowledge base to identify applicable laws and evidentiary requirements, and, if necessary, consults a database of law firms to provide information on appropriate law firms.
[1931] 3. Application: Displays results to the user in real time and provides the necessary information.
[1932] Specific examples
[1933] For example, if a user enters "I broke my friend's bike," the system will operate as follows:
[1934] 1. Information entered on the user terminal is sent to the server.
[1935] 2. The server consults its legal knowledge base to determine whether the activity constitutes a "tort."
[1936] 3. If applicable, present the user with the requirements of proof (act, damage, negligence).
[1937] 4. In addition, we will refer to a database of law firms and provide information on appropriate law firms.
[1938] Prompt Sentence Examples
[1939] "Please create a system that determines whether the user's actions violate the law and presents the applicable law and the proof requirements. Also, please add a function that directs users to the consultation page of a law firm that specializes in that field."
[1940] In this way, users can quickly determine whether their actions violate the law and take appropriate action.
[1941] The flow of the specific processing in Application Example 3 will be described with reference to FIG.
[1942] Step 1:
[1943] The user enters their situation and the events that have occurred into a chat application on their smartphone.
[1944] Input: Text information entered by the user (e.g., "I broke my friend's bike")
[1945] Output: The entered text information is sent to the server.
[1946] Step 2:
[1947] The server receives the text information sent by the user.
[1948] Input: Text information sent by the user
[1949] Output: Text information is ready to be processed in the server
[1950] Step 3:
[1951] The server analyzes the received text information and checks the applicable law by referring to a legal knowledge base.
[1952] Input: Received text information
[1953] Data processing: Using text analysis algorithms to extract important keywords from text information
[1954] Output: Information on applicable laws based on extracted keywords
[1955] Step 4:
[1956] The server presents the user with the applicable law and its proof requirements.
[1957] Input: Information and substantive requirements of applicable law
[1958] Output: A text message informing the user of the applicable law and proof requirements.
[1959] Step 5:
[1960] The server refers to the law firm database as needed to obtain information on the appropriate law firm.
[1961] Input: Applicable legal information
[1962] Data processing: Query a database of law firms to find law firms in your field
[1963] Output: A list of suitable law firms
[1964] Step 6:
[1965] The server provides the acquired law firm information to the user.
[1966] Input: Law firm list
[1967] Output: A text message displaying the law firm's information to the user
[1968] Step 7:
[1969] The user takes necessary action based on the information provided.
[1970] Input: Legal information and law firm information provided by the server
[1971] Output: Actions that the user can take to take appropriate action
[1972] In this way, users can quickly determine whether their actions violate the law and take appropriate action.
[1973] Furthermore, an emotion engine that estimates the user's emotion may be further combined. That is, the identification processing unit 290 may estimate the user's emotion using the emotion identification model 59, and perform identification processing using the user's emotion.
[1974] "Example 1"
[1975] One embodiment of the present invention is a system incorporating an emotion engine. In this system, when a user enters information about their situation or an incident into a chat, the emotion engine analyzes the user's emotion from the text. For example, if a user enters, "Yesterday, I borrowed my friend's bicycle and accidentally broke it. I really regret it," the emotion engine will recognize the emotion "regret."
[1976] "Example 2"
[1977] The results of the emotion engine's analysis are used to determine whether the system is likely to violate the law. In the example above, the emotion of "regret" indicates that the user recognizes that their actions were wrong. This allows the system to determine that the user's actions are likely to constitute a "tort" under civil law.
[1978] "Example 3"
[1979] Furthermore, the emotion engine recommends the most suitable law firm based on the user's emotions. In the example above, the emotion of "regret" indicates the user's desire to correct their actions and compensate for the damage. For such a user, the engine recommends a law firm that values honesty in its dealings.
[1980] The processing flow of each embodiment will be described below.
[1981] "Example 1"
[1982] Step 1: The user enters their situation and the incident into the chat.
[1983] Step 2: The emotion engine analyzes the user's emotion from the input text.
[1984] "Example 2"
[1985] Step 1: The emotion engine analysis results are sent to the system.
[1986] Step 2: The system determines the possibility of legal violations based on the analysis results.
[1987] "Example 3"
[1988] Step 1: The emotion engine analyzes the user's emotions.
[1989] Step 2: The emotion engine recommends the most suitable law firm based on the analysis results.
[1990] Example 1
[1991] Next, a description will be given of Example 1 of Form Example 1. In the following description, the data processing device 12 will be referred to as a "server" and the headset type terminal 314 will be referred to as a "terminal."
[1992] In modern society, there is a demand for systems that allow users to easily record their own situations and events, and receive necessary legal advice and emotional feedback. However, current systems lack the means to check whether the content entered by the user is legally problematic, or to analyze emotions and provide feedback. This can prevent users from receiving appropriate advice, and can lead to an information gap.
[1993] The specific processing by the specific processing unit 290 of the data processing device 12 in the first embodiment is realized by the following means.
[1994] In this invention, the server includes means for users to input their situation and the events that have occurred into the chat, means for checking whether the input content violates civil or criminal law, means for providing hints to prove which law applies if it does violate civil or criminal law, means for directing the user to a consultation page with experts in that field, means for analyzing the input text and identifying the user's emotions, and means for providing feedback on the identified emotions to the user. This allows users to easily record their situation and receive legal advice and emotional feedback.
[1995] A "user" is an individual or group that uses the system to enter information about their situation or events that have occurred into the chat.
[1996] "Means for inputting text into chat" is a function that provides an interface for users to input text.
[1997] "Means to check whether the entered content violates civil or criminal law" is a function that analyzes the text entered by the user and determines whether there are any legal issues.
[1998] "Means of answering which law applies and hints on how to prove it" is a function that provides information on the applicable law and how to prove it if the content entered is legally problematic.
[1999] The "means for guiding to a page for consulting an expert" is a function for guiding to a web page of an expert that the user can consult when they have a legal problem.
[2000] The "means for analyzing input text and identifying the user's emotions" is a function that uses natural language processing technology to analyze the text input by the user and identify the emotions.
[2001] The "means for providing feedback of the identified emotion to the user" is a function for notifying the user of the emotion identified by the analysis.
[2002] This invention is a system that allows users to input their own situations and events into a chat, checks whether the content is legally problematic, and provides legal advice and emotional feedback as necessary. A specific embodiment of this system is described below.
[2003] First, a user freely enters text about their situation or the incident into a chat box on a web browser or mobile application. For example, they might type, "Yesterday, I borrowed my friend's bicycle and accidentally broke it. I really regret it."
[2004] The terminal (user's device) then transmits the entered text in real time to the serv...
Claims
1. A means for a user to input text data into the chat that describes his / her situation and the event that occurred; means for transmitting text data entered into the chat to a server; A means for the server to analyze the text data; A means for the server to input a prompt sentence to the generative AI model to instruct the model to generate a response to the text data; means for the generative AI model to generate a response to the prompt sentence; means for displaying the generated response to a user; A means for checking whether the contents of the text data violate civil or criminal law; If it involves civil or criminal law, which law it falls under and how to prove it. A means to direct users to a consultation page with experts in the relevant field of law; A system including:
2. 2. The system of claim 1, wherein the system is available to the users free of charge and allows experts to register for a fee.
3. The system according to claim 1 , wherein the server receives text data entered into the chat and analyzes the text data using natural language processing technology.
Citation Information
Patent Citations
A shared legal consulting system for multi-robot terminals based on a semantic web
CN109165281A
Legal consulting robot based emotional pacifying method
CN111300443A
Online legal consultation system
JP7233065B1
Persona chatbot control method and system
JP2022180282A
KR20230141223A
Cited By
Guardrail system and program
JP7862638B1
Guardrail system and program
JP7862639B1