When it comes to naming a dog, some owners spend hours going over all their options before picking one out to suit their precious pet.
But for others, the name just comes to them in the heat of the moment.
A man has revealed how he named his rescued puppy after his neighbour just to "get his own back" on him.
Speaking to Reddit, the 27-year-old explained how he has a "great relationship" with his neighbour and how the duo "love to wind each other up" on a daily basis.
He said: "I've wanted a dog for as long as I can remember. I've been in my own place for two years now and am in a position where I can bring a dog into my life.
"I wanted a puppy so I searched around so many rescue centres to find one because I wanted to adopt rather than go to a breeder - also for the cost, if I'm being honest.
"I ended up with a crossbreed puppy who is seven-months-old. He's fantastic already - a right little character."
Sign up to our TeamDogs newsletter for your weekly dose of dog news, pictures and stories.
After learning the rescue centre called the dog Marley, he asked whether he could change its name because his childhood dog was also called Marley.
He added: "It just didn't feel right replacing my Marley - that's what it felt like I would be doing anyway.
"I asked the centre about changing his name and they said he would get used to a name change because he'd only been with them a short time."
With that, the man started brainstorming names and it didn't take him long to settle on one.
"I thought about what I could call him all evening and then it came to me - I'd call him Peter after my neighbour," he said.
"My neighbour is in his late 60s and we are always pulling each other's legs. He doesn't have children and says I'm like the son or grandson he never had - it depends how old he is feeling on the day."
When his neighbour was in his garden the following weekend, the man shouted over the fence to him saying he had a "surprise" to show him.
He said: "I went out into the front garden and showed him my Peter over the fence. His face was priceless when I told him I named him after him.
"He said he is both 'honoured and insulted'.
"He went straight in and brought his wife, Sandra, out to show her. She couldn't stop laughing and said it made her entire year that I named my dog Peter.
"In the weeks since, my neighbour Peter has been over to give little Peter gifts. He bought him some toys and treats and said he would happily watch over him when I'm 'hitting the town failing at chatting up a girl'. I might have to take him up on that offer."
While most users spoke about how "wholesome" their relationship is, others joked about how the neighbour is going to get his own back by "stealing" his dog.
One user said: "I thought this was going to be a petty story but it was surprisingly wholesome! Love the relationship you have with your neighbour, it's an adorable story. Hope little Peter and neighbour Peter won't team up to try to one up you."
Another user added: "This is hilarious. Peter's already trying to get back at you though. Take the puppy when trying to meet girls don't leave him with big Peter."
A third user said: "This was sweet! This reminded me of my grandma telling me that one of her neighbours growing up named their dog ‘Help’. You’d just randomly hear them yelling HELP!'. It's a good thing nothing bad ever happened."
Do you have a dog story to share? Email paige.freshwater@reachplc.com.