Title: To the nines
Content:  "To the nines" is an English idiom meaning "to perfection" or "to the highest degree". In modern English usage, the phrase most commonly appears as "dressed to the nines" or "dressed up to the nines".
Title: 9
Content: "to go the whole nine yards-" ; "A cat-o'-nine-tails suggests perfect punishment and atonement." – Robert Ripley. ; "A cat has nine lives" ; "to be on cloud nine" ; "A stitch in time saves nine" ; "found true 9 out of 10 times" ; "possession is nine tenths of the law" ; The word "K-9" pronounces the same as canine and is used in many US police departments to denote the police dog unit. Despite not sounding like the translation of the word canine in other languages, many police and military units around the world use the same designation. ; Someone dressed "to the nines" is dressed up as much as they can be. ; In North American urban culture, "nine" is a slang word for a 9mm pistol or homicide, the latter from the Illinois Criminal Code for homicide. 
Title: To the nines
Content:  The phrase is said to be Scots in origin. The earliest written example of the phrase is from the 1719 Epistle to Ramsay by the Scottish poet William Hamilton: <poem style="margin-left: 2em;">The bonny Lines therein thou sent me, How to the nines they did content me. Robert Burns' "Poem on Pastoral Poetry", published in 1791, also uses the phrase: <poem style="margin-left: 2em;">Thou paints auld nature to the nines, In thy sweet Caledonian lines. Brewer's Dictionary of Phrase and Fable (New and Revised edition. 1981) states that the phrase is 'perhaps a corruption of 'then eyne' (to the eyes)" The phrase may have originally been associated with the Nine Worthies or the nine Muses. A poem from a 17th century collection of works by John Rawlet contains the following lines: <poem style="margin-left: 2em;">The learned tribe whose works the World do bless, Finish those works in some recess; Both the Philosopher and Divine, And Poets most who still make their address In private to the Nine.
Title: The whole nine yards
Content:  whole six yards, used around the same time in Kentucky and South Carolina. Both phrases are variations on the whole ball of wax, first recorded in the 1880s. They are part of a family of expressions in which an odd-sounding item, such as enchilada, shooting match, shebang or hog, is substituted for ball of wax. The choice of the number nine may be related to the expression "To the nines" (to perfection). Use of the phrase became widespread in the 1980s and 1990s. Much of the interest in the phrase's etymology can be attributed to New York Times language columnist William Safire, who wrote extensively on this question.
Title: Whispered pectoriloquy
Content:  The choice of "ninety-nine" is the unfortunate result of a literal translation. The test was originally described by a German physician who used the phrase "neunundneunzig", which he found would cause maximum vibration of the chest. The translation, "ninety-nine", has fewer vowels and is less effective in evoking the phenomenon. Better phrases in English include "toy boat”, "Scooby Doo", and “blue balloons".
Title: Craps
Content:  nine is also known as "Jesse James" because the outlaw Jesse James was killed by a .45 caliber pistol. Other names for the nine include "Nina from Pasadena", "Nina at the Marina", and "niner from Carolina". Nine can also be referred to as "Old Mike", named after NBA Hall-of-Famer Michael Jordan. Jordan wore number 45 later on in his playing career. ; Ten the hard way is "a hard ten", "dos equis" (Spanish, meaning "two X's", because the pip arrangement on both dice on this roll resembles "XX"), or "Hard ten – a woman's best friend", an example of both rhyming slang and sexual double entendre. Ten as a 
Title: Ninety-nine (trick-taking card game)
Content:  Ninety-nine is a card game for 2, 3, or 4 players. It is a trick-taking game that can use ordinary French-suited cards. Ninety-nine was created in 1967 by David Parlett; his goal was to have a good 3-player trick-taking game with simple rules yet great room for strategy. In ninety-nine, players bid for the number of tricks that they will take; players who gain exactly that number of tricks (no more or less) gain a significant bonus. One unusual feature of ninety-nine is that players bid by discarding three cards.
Title: Red nines
Content:  Red nines is a simple card game for four or more players. It is largely a game of luck, and is suitable for players of any age. Games with more than four players are best when played without hesitation. The origin of the game is uncertain, although it is known to have been played in south-west London during the 1950s. A card game called red nines is mentioned in Holme Lee's Ashburn Rectory story from the 1850s.
Title: The whole nine yards
Content: Many of the popular candidates relate to the length of pieces of fabric, or various garments, including Indian saris, Scottish kilts, burial shrouds, or bolts of cloth. No single source verifies that any one of those suggestions was the actual origin. However, an article published in Comments on Etymology demonstrates that fabric was routinely sold in standard lengths of nine yards (and other multiples of three yards) during the 1800s and early 1900s. This may explain why so many different types of cloth or garments have been said to have been nine yards long. The phrase "...she has put the whole nine yards into one shirt" appears 
Title: The whole nine yards
Content:  The Oxford English Dictionary places the earliest published non-idiomatic use of the phrase in the New Albany Daily Ledger (New Albany, Indiana, January 30, 1855) in an article called "The Judge's Big Shirt." "What a silly, stupid woman! I told her to get just enough to make three shirts; instead of making three, she has put the whole nine yards into one shirt!" The first known use of the phrase as an idiom appears in The Mitchell Commercial, a newspaper in the small town of Mitchell, Indiana, in its May 2, 1907 edition: "This afternoon at 2:30 will be called one of the baseball games that will be worth going a 

Question: where does the phrase dressed to the nines?
Answer: Scots in origin.