     func testAddAndDeleteASingleWord() {
         let description = "Add 1 word to the trained customization."
         let expectation = self.expectation(description: description)
-
-        let word1 = NewWord(soundsLike: ["hilton honors", "h honors"], displayAs: "HHonors")
-        speechToText.addWord(withName: "HHonors", customizationID: trainedCustomizationID, word: word1, failure: failWithError) {
+        speechToText.addWord(customizationID: trainedCustomizationID, wordName: "HHonors", soundsLike: ["hilton honors", "h honors"], displayAs: "HHonors", failure: failWithError) {
             expectation.fulfill()
         }
         waitForExpectations()
 
         let description2 = "Delete word1."
         let expectation2 = self.expectation(description: description2)
-
-        speechToText.deleteWord(withName: "HHonors", customizationID: trainedCustomizationID, failure: failWithError) {
+        speechToText.deleteWord(customizationID: trainedCustomizationID, wordName: "HHonors", failure: failWithError) {
             expectation2.fulfill()
         }
         waitForExpectations()


        let settings = RecognitionSettings(contentType: format)
        speechToText.recognize(audio: file, settings: settings, failure: failWithError) { results in
            self.validateSTTResults(results: results.results, settings: settings)
            XCTAssertEqual(results.results.count, 1)
            XCTAssert(results.results.last?.final == true)
            let transcript = results.results.last?.alternatives.last?.transcript
            XCTAssertNotNil(transcript)
            XCTAssertGreaterThan(transcript!.count, 0)
            expectation.fulfill()


    func validateSTTResult(result: SpeechRecognitionResult, settings: RecognitionSettings) {

        XCTAssertNotNil(result.finalResults)
        let final = result.finalResults

        XCTAssertNotNil(result.alternatives)
        var alternativesWithConfidence = 0
