Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Simila configuration #4

Open
mehrandvd opened this issue Oct 25, 2019 · 0 comments
Open

Simplify Simila configuration #4

mehrandvd opened this issue Oct 25, 2019 · 0 comments

Comments

@mehrandvd
Copy link

Previously Simila configuration was heavily designed based on dependency injection concepts, which was too complicated for the context.

We should make the configuration process much easier by:

  • Configuration over convention
  • Creating a SimilaFactory accessible by Simila.Create() to facilitate creating configured Simila.
var simila = Simila.Create()
   .Treshold(.7)
   .CaseSensitive(true)
   .PhraseComparer()
   .WordComparer()
   .CharacterComparer()
   .Build();

‍‍‍‍‍‍‍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant