Code Monkey home page Code Monkey logo

euromoney.recruitmenttest's Introduction

Intro

One of the things we do at Euromoney is publish and manage content. This assignment is to analyse text, detecting and filtering negative words.

  • This assignment takes between 30 minutes and an hour.
  • NUnit and Moq, references have been added using NuGet Packages.

Task requirements

  • All stories to be completed with an appropriate level of testing.
  • No actual storage implementation or databases are required, feel free to stub or mock any data access you need.
  • Reformat, refactor and rework the provided code in any way you see fit.
  • Code must be supported by tests to be "done-done".

Task Stories

Please complete each story in order.


Story 1

As a user
I want see the number of negative words in a text input
So that we can track the amount of negative content

Acceptance criteria

  • Total number of negative words output to screen
  • Console output the total number of negative words and the phrase analysed
  • Example output:
Scanned the text:
The weather in Manchester in winter is bad. It rains all the time - it must be horrible for people visiting.
Total Number of negative words: 2
Press ANY key to exit.

Story 2

As an administrator
I want to be able to change the set of negative words counted
So that I don't need to change the code when we select new negative words or phrases

Acceptance criteria

  • Negative words retrieved from data store.
  • Number of negative words found respects words available from the data store.

Story 3

As a reader
I want negative words filtered out of the text
So that our clients are not upset by negative language

Acceptance criteria

  • Any negative word in the text should have its middle replaced with hashes.
    "Horrible"
    should be outputted
    "H######e"
    .

Story 4

As an content curator
I want disable negative word filtering on the command line
So that I can see the original content.

Acceptance criteria

  • Count of negative words output
  • Original text output

Thanks for your time, we look forward to hearing from you!

euromoney.recruitmenttest's People

Contributors

davidwhitney avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.