Skip to content

Commit 615c37e

Browse files
committed
Improved documentation.
1 parent 9b2fbed commit 615c37e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,15 @@ FormatterResult formatterResult = executor.execute(command, mode, argument).get(
201201
Detects various types of possibly fake data in person records.
202202

203203
```java
204-
import org.nameapi.client.services.formatter.personnameformatter.PersonNameFormatterArgument;
205-
import org.nameapi.client.services.formatter.personnameformatter.PersonNameFormatterCommand;
206-
import org.nameapi.ontology5.input.entities.person.NaturalInputPerson;
204+
import org.nameapi.ontology5.input.entities.address.StructuredAddressBuilder;
205+
import org.nameapi.ontology5.input.entities.address.StructuredPlaceInfoBuilder;
206+
import org.nameapi.ontology5.input.entities.address.StructuredStreetInfoBuilder;
207+
import org.nameapi.ontology5.input.entities.contact.EmailAddressFactory;
208+
import org.nameapi.ontology5.input.entities.contact.TelNumberFactory;
209+
import org.nameapi.ontology5.input.entities.person.InputPerson;
207210
import org.nameapi.ontology5.input.entities.person.NaturalInputPersonBuilder;
208-
import org.nameapi.ontology5.services.formatter.FormatterProperties;
209-
import org.nameapi.ontology5.services.formatter.FormatterResult;
211+
import org.nameapi.ontology5.input.entities.person.name.builder.WesternInputPersonNameBuilder;
212+
import org.nameapi.ontology5.services.riskdetector.*;
210213

211214
PersonRiskDetectorCommand command = new PersonRiskDetectorCommand();
212215
InputPerson person = new NaturalInputPersonBuilder()
@@ -219,7 +222,7 @@ InputPerson person = new NaturalInputPersonBuilder()
219222
.streetInfo(new StructuredStreetInfoBuilder().streetName("Hill road").houseNumber("72").build())
220223
.build())
221224
.build();
222-
executor.execute(command, mode, person).get();
225+
RiskDetectorResult result = executor.execute(command, mode, person).get();
223226
```
224227

225228

0 commit comments

Comments
 (0)